Skip to content

Instantly share code, notes, and snippets.

@benrogmans
Created January 13, 2014 09:18
Show Gist options
  • Save benrogmans/8397001 to your computer and use it in GitHub Desktop.
Save benrogmans/8397001 to your computer and use it in GitHub Desktop.
Facebook get a long life access token
1. Get an access_token
https://www.facebook.com/dialog/oauth?
client_id=XXX&
client_secret=XXX&
redirect_uri=XXX&
scope=publish_stream,offline_access,read_stream,manage_pages&
response_type=token
2. Get a long lasting access_token
https://graph.facebook.com/oauth/access_token?
grant_type=fb_exchange_token&
client_id=XXX&
client_secret=XXX&
fb_exchange_token=XXX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment