Reputation: 111
I am using the Corodova FaceBook plugin for iOS from GitHub. I have already spent many hours searching, but I have found nothing. How can I get and save the access token of the user? Later on I want to use this access token for data publishing.
Upvotes: 0
Views: 656
Reputation: 3556
FB.getLoginStatus(handleStatusChange);
function handleStatusChange(session) {
if (session.authResponse)
alert(session.authResponse.accessToken); // This will print the token
}
Upvotes: 1