# 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](https://developers.facebook.com/tools/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=&lt;App ID&gt;&amp;client\_secret=&lt;App secret&gt;&amp;grant\_type=fb\_exchange\_token&amp;fb\_exchange\_token=&lt;short-lived access token&gt;
8. Copy the new long-lived token from the response
9. Make another get request to: https://graph.facebook.com/me/accounts?access\_token=&lt;your long-lived access token&gt;
10. Copy the new token and paste it to [Access Token Debug Tool](https://developers.facebook.com/tools/debug/accesstoken), make sure that it never expires

References  
\- [This stackoverflow post](http://stackoverflow.com/questions/7696372/facebook-page-access-tokens-do-these-expire)