Long Lived access token for facebook api

by Mohan 2014-04-23 17:59:29




Long Lived access token for php sdk facebook applications


Facebook Access tokens are used to post or to retrieve information from facebook pages using applications in facebook.

Normally the access tokens are short lived and it will expire in an hour(60 minutes).

To get Long Lived access token for facebook application the following code can be used.




https://graph.facebook.com/oauth/access_token?
grant_type=fb_exchange_token&
client_id=your-app-id&
client_secret=your-app-secret&fb_exchange_token=short-lived access-token



you will get long lived access token(for 60 days) and expiry time on executing the above code in browser.

725
like
0
dislike
0
mail
flag

You must LOGIN to add comments