Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 468 Bytes

File metadata and controls

16 lines (13 loc) · 468 Bytes

#.getAccessToken()

Returns the access token granted to your app when the user most recently authorized it; otherwise, an empty string.

##Example

var facebook = plugin.FacebookAgent.getInstance();
var token = facebook.getAccessToken();
    if (token){
        cc.log("AccessToken: " + token);
    } else {
        cc.log("No valid access token from the current user");
    }
});