How to Get a Facebook Page Access Token?

6
3111

Facebook requires a Page Access Token if you want to use the data from your Facebook page, customize it and embed it on your website through SociableKIT.

For example, in Facebook Page Events Solution, a page access token is required if you want to display high quality event images, event description, maps, past events, instant sync  and other useful event data.

How to get a Facebook page access token? Follow steps and sub-steps below. This will work only if you are an admin of the Facebook page you’re trying to get data from.

Video tutorial

Text tutorial with screenshots

Step #1: Create your Facebook application

1.1 Go to Facebook Developers website and login. Facebook might ask you to register as a Developer, just follow the registration process.

1.2 On the upper right corner, click “My Apps” menu. On the drop-down, click “Add New App” option.

1.3 On the pop up, enter “SK App 2018” as “Display Name” and on the “Contact Email” field, enter your email address. Click “Create App ID” button. Pass the security check and click the “Submit” button.

Step #2: Get your temporary page access token

2.1 Go to the Graph API Explorer. On the upper right corner, click “Graph API explorer”, click “SK App 2018” app to change it.

2.2 On the access token field, click “Get Token” drop-down and click “Get Page Access Token” option. It might show you checkbox options, check “manages_pages” and “pages_show_list” and click the blue button.

2.3 On the pop up, click “Continue as…” button.

2.4 Click “OK” button. It will show the list of pages you manage.

2.5 Click your target Facebook page under the “Page Access Tokens” section. It will generate the temporary access token. Copy it from the “Access Token” field.

Step #3: Get your extended page access token

3.1 Go to the Access Token Debugger. Enter the temporary access token and click the “Debug” button.

3.2 On the bottom part of the page, click “Extend Access Token” button. Click the “Debug” button right across the generated access token.

3.3 It will show you a new page where it says the access token will expire in two months. We need the access token that never expires.

3.4 Go to the access token converter here. Copy the access token from the previous step. Paste it in the box. Click the green “Show…” button. It will show you a blue “Debug” button. Click that “Debug” button.

3.5 It will show you a new page where it says the access token in the field never expires.

3.6 Copy the access token from the field. Go back to SociableKIT dashboard. Paste the access token in “Page Access Token” field. Hit the “Save Changes” button at the bottom.

Using the page access token, you can also make an event from another Facebook page appear on your events feed. But your page need to be a co-host of that event first. Follow this tutorial if you want to be an event co-host.

Let me know if you need help doing the steps above. I can walk you through each steps. Just send an email to mike@sociablekit.com and with a subject: Help – Facebook Page Access Token

6 COMMENTS

  1. Hello, I am trying to follow the tutorial, but it seems like the converter is not working currently. Is there any other way how to get unlimited token for now? Thanks!

  2. Hi, The converter is also not working for me. I get the following error:

    Warning: file_get_contents(https://graph.facebook.com/me?access_token=EAAECKEsf4G4BAGQaE4yA1basdfxxxJSUQ2HS7fUllXQj5V1jdZAykykbVMmnJ8kiiVyGTU4Spj6emBFz0mZBRlNtaJwJGhChCquYRSZBb7vmsfl64jhy7QUo54SesKZATXKYa2jDHzQDWedXjWVTbmM4pvtbsai63jgZA16iCDHKb&limit=100&fields=id,username,name,access_token): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /home/xxx/public_html/app/convert_token_to_never_expire.php on line 55

    Thanks

LEAVE A REPLY

Please enter your comment!
Please enter your name here