Skip to content

Instantly share code, notes, and snippets.

@ssinss
Created January 20, 2015 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssinss/fb6d292ce52815b4220c to your computer and use it in GitHub Desktop.
Save ssinss/fb6d292ce52815b4220c to your computer and use it in GitHub Desktop.
get extended facebook access token
import facebook
SHORT_ACCESS_TOKEN = "SHORT_ACCESS_TOKEN"
APP_ID = "APP_ID"
APP_SECRET = "APP_SECRET"
graph = facebook.GraphAPI(SHORT_ACCESS_TOKEN)
extended_access_token = graph.extend_access_token(APP_ID, APP_SECRET)
print extended_access_token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment