How to get an extended Facebook App Access Token

> Go to https://developers.facebook.com/tools/explorer

> From the Graph Api Explorer dropdown choose YOUR-APP-NAME

> From the Get Token dropdown choose Get User Access Token

> Enable manage_pages and publish_pages in the new popup

> Click OK on the next popup

> Open Get Token dropdown again and under Page access tokens select YOUR-PAGE-NAME

> Copy the new Access token from the field. This access token is valid 1 hour only. The ID in the grey field below is your page id.

> Now go to https://developers.facebook.com/tools/debug/accesstoken

> Paste the 1 hour token and click on Debug

> Click Extend Access Token button in the new screen

You now have the new 2 months valid access token

I use this method to generate access token for my bot that posts random gifs directly to a Facebook page. You can get the bot here: gum.co/gif-bot

Thanks, and click the ❤ button if this tutorial helped you.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.