cocos2d-x / plugin-x

Plugin-x is the plugin repository for cocos2d-x, it also provides a unified API for plugins.
71 stars 91 forks source link

fix bug call function isLoggedIn in facebookAgent return wrong result #170

Open thuydx55 opened 9 years ago

thuydx55 commented 9 years ago

I used this code in my project

ctor: function() {
    this._agent = window.facebook || (window["plugin"] ? window["plugin"]["FacebookAgent"]["getInstance"]() : null);
},

isLoggedIn: function() {
    return this._agent.isLoggedIn();
},

when i call isLoggedIn function, it always returns false even if i logged in before

thuydx55 commented 9 years ago

@minggo @pandamicro pls check this