Facebook APIs

Generating Graph Access Token that Never Expire

  1. Make sure you are the admin of the FB page you wish to pull info from
  2. Create a FB App using the Page admin's account
  3. Head over to the Facebook Graph API Explorer
  4. Select the FB App you created from the "Application" drop down list
  5. Click "Get User Access Token"
  6. Make sure that "manage_pages" permission is checked
  7. Make a GET request to: https://graph.facebook.com/oauth/access_token?client_id=<App ID>&client_secret=<App secret>&grant_type=fb_exchange_token&fb_exchange_token=<short-lived access token>
  8. Copy the new long-lived token from the response
  9. Make another get request to: https://graph.facebook.com/me/accounts?access_token=<your long-lived access token>
  10. Copy the new token and paste it to Access Token Debug Tool, make sure that it never expires

References
- This stackoverflow post