• 2
  • 2
  • 1
  • 1
:
  • 4
  • 4
  • 3
  • 3
:
  • 5
  • 5
  • 6
  • 6

HOURS

MINUTES

SECONDS

SPECIAL OFFER - Save 73% OFF on Premium 13 WPBakery ADD-ONS Get Now

How to get a Facebook Access Token

  1. Create an app from https://developers.facebook.com/ . Give necessary information and create the app.

0_6BmVGQNRry8SM-nG_

2. Create short lived user access token .

Go to tool explorer https://developers.facebook.com/tools/explorer/ and select the app created above and select “Get user access token in the drop down” .

 0_sX22tT9bh7NjyjaS_

Once you selected “Get user access token in the drop down” it will prompt following pop up . There you can select the permission(scopes) for the user access token.

Here I have selected “publish pages” and “manager pages” scopes which are need to create non expiry page access token.

0_qL_xyMb09LVDKkvv_

More detail about scopes can be found here
https://developers.facebook.com/docs/facebook-login/permissions

“This will create short lived user access token”

3. Create long lived user access token

Go to https://developers.facebook.com/tools/accesstoken/.There you will find short lived user access tokens and app access token of all the apps you have

0_MYWgeKxMywmLovSa_Press debug option of user access token of the app created above. This will take you to the debug tool. Where you can find all the information of short lived user access token.

In the bottom there is option to generate long lived(60 days) user access token for this short lived user access token. Generate long lived user access token by selecting “Extend Access Token”

0_cFS273l3nk4ziWwb_

4. Create never expired page access token

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

b. Paste the long lived user access token generated in previous step inside “Access token” field.

c. Access “/me/accounts” api . This will result page access tokens and pages related to them. These page access tokens will never expire(until user change the password/user revoke the app)

0_1ka-3EF3D9upB09w_

5. Verify non expiry page access token

a. Go to https://developers.facebook.com/tools/debug/accesstoken/

b. Generate never expire user access token by selecting “Extend Access Token”. and copy and paste this token in your social setting tab from admin side.

Access Token Debugger Facebook for Developers