Ad

How Can I Get Facebook Access Token From Facebook User Id?

I am working on the application which has some condition that I have to pass facebook token to web service but I have an only facebook id which is store in user model, So is there any way in Facebook SDK to get facebook access token from facebook id?

Ad

Answer

You get the access token when the user authorizes your App. There is no way to just generate it with the id, it can only happen on user interaction.

More information: https://developers.facebook.com/docs/facebook-login/access-tokens

Ad
source: stackoverflow.com
Ad