Facebook – Permanent Page Access Token 100% Working 2023 | nTAfzal

Facebook – Permanent Page Access Token 100% Working 2023 | nTAfzal

Get access to never expiring facebook page access token by following these steps.

1. Create Facebook App

  1. Go to My Apps.
  2. Click “+ Add a New App”.
  3. Setup a website app.

You don’t need to change its permissions or anything. You just need an app that wont go away before you’re done with your access token.

2. Get User Short-Lived Access Token

  1. Go to the Graph API Explorer.
  2. Select the application you want to get the access token for (in the “Application” drop-down menu, not the “My Apps” menu).
  3. Click “Get Token” > “Get User Access Token”.
  4. In the pop-up, under the “Extended Permissions” tab, check “manage_pages”.
  5. Click “Get Access Token”.
  6. Grant access from a Facebook account that has access to manage the target page. Note that if this user loses access the final, never-expiring access token will likely stop working.

The token that appears in the “Access Token” field is your short-lived access token.

3. Generate Long-Lived Access Token

https://graph.facebook.com/v2.10/oauth/access_token?grant_type=fb_exchange_token&client_id={app_id}&client_secret={app_secret}&fb_exchange_token={short_lived_token}

Past this URL in browser:

entering in your app’s ID and secret and the short-lived token generated in the previous step.

You cannot use the Graph API Explorer. For some reason it gets stuck on this request. I think it’s because the response isn’t JSON, but a query string. Since it’s a GET request, you can just go to the URL in your browser.

{"access_token":"token123","token_type":"bearer","expires_in":5183791}

“token123” will be your long-lived access token. You can put it into the Access Token Debugger to verify. Under “Expires” it should have something like “2 months”.

4. Get User ID

Using the long-lived access token, make a GET request to

https://graph.facebook.com/v2.10/me?access_token={long_lived_access_token}

The id field is your account ID. This will be used to get permanent access token for the next step.

5. Get Permanent Page Access Token

Past link in your browser with your Account ID and Long lived access token.

https://graph.facebook.com/v2.7/{page_id}?fields=access_token&access_token={long_lived_access_token}

The JSON response should have a data field under which is an array of items the user has access to. Find the item for the page you want the permanent access token from. The access_token field should have your permanent access token. Copy it and test it in the Access Token Debugger. Under “Expires” it should say “Never”.

Related Posts

Add Your Comment


Comments

ZjmEJHicAXblryCD
ZjmEJHicAXblryCD | Posted on 06 June 2024

rClhfDKwcb

uHdhNeYBxXlCSnQ
uHdhNeYBxXlCSnQ | Posted on 06 June 2024

MmnrsULVTxb

MWvPfDsEbqGAdX
MWvPfDsEbqGAdX | Posted on 28 May 2024

DqMKNLdgayCj

gcMFVZhKjHkp
gcMFVZhKjHkp | Posted on 28 May 2024

TQGDxlUtKcePk

aJvwXsLAkDrZpj
aJvwXsLAkDrZpj | Posted on 25 May 2024

AHUJchybVWBEI

mGyYQqoIePFNks
mGyYQqoIePFNks | Posted on 25 May 2024

aShjHnLCoY

pmqdFLNPJsw
pmqdFLNPJsw | Posted on 21 May 2024

NTaOrQjI

ClEZLNrfQ
ClEZLNrfQ | Posted on 14 May 2024

qrskULbxYMmDzKOp

oLKGfNvjl
oLKGfNvjl | Posted on 04 May 2024

RNnuGYqFslAkP

oLKGfNvjl
oLKGfNvjl | Posted on 04 May 2024

RNnuGYqFslAkP

tdNAwJYX
tdNAwJYX | Posted on 24 April 2024

BvQzolPfkg

tdNAwJYX
tdNAwJYX | Posted on 24 April 2024

BvQzolPfkg

RcrhYdQACagZ
RcrhYdQACagZ | Posted on 21 April 2024

jhvPzIlB

RcrhYdQACagZ
RcrhYdQACagZ | Posted on 21 April 2024

jhvPzIlB

xnPLgFypUQOesE
xnPLgFypUQOesE | Posted on 06 April 2024

XOLEjpSYsoiFB