Skip to content

Instantly share code, notes, and snippets.

@ekoneil
Created July 13, 2012 18:10
Show Gist options
  • Save ekoneil/3106393 to your computer and use it in GitHub Desktop.
Save ekoneil/3106393 to your computer and use it in GitHub Desktop.
FB URL Templates
1/ Desktop web Auth Dialog
GET https://www.facebook.com/dialog/permissions.request?app_id={fb-app-id}&display=page&next={redirect-url}&response_type=token&fbconnect=1&perms={permissions}
2/ Mobile web Auth Dialog
GET https://m.facebook.com/dialog/permissions.request?app_id={fb-app-id}&display=touch&next={redirect-url}&response_type=token&fbconnect=1&perms={permissions}
3/ Extend access token
GET https://graph.facebook.com/oauth/access_token?client_id={fb-app-id}&client_secret={fb-app-secret}&grant_type=fb_exchange_token&fb_exchange_token={existing-user-token}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment