Skip to content

Instantly share code, notes, and snippets.

@katopz
Last active August 29, 2015 14:07
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 katopz/285b0a98056c9ad86343 to your computer and use it in GitHub Desktop.
Save katopz/285b0a98056c9ad86343 to your computer and use it in GitHub Desktop.
[FB] Post to page by admin
Post to page by admin
---
* user get access_token with manage_pages from app
https://www.facebook.com/dialog/oauth?client_id=YOUR_APP_ID&display=touch&response_type=token&scope=manage_pages&redirect_uri=YOUR_REDIRECT_URI
* user get access_token from page id
https://graph.facebook.com/YOUR_PAGE_ID?fields=access_token&access_token=YOUR_ACCESS_TOKEN
* get log live access_token (2 months)
https://graph.facebook.com/oauth/access_token?client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET&grant_type=fb_exchange_token&fb_exchange_token=YOUR_ACCESS_TOKEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment