Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To get a long-lived access token you need to follow those steps:</p> <ol> <li><p>Create an Application</p></li> <li><p>Create a Page (your account need to be "administrator" of the page)</p></li> <li><p>Associate the application to the Page (the same way you do it when you want to add a Page Tab to a Page)</p></li> <li><p>Get a short-lived access token with the permission "manage_pages" associated to your Application.</p></li> <li><p><a href="https://graph.facebook.com/oauth/authorize?client_id=__APP_ID__&amp;scope=manage_pages&amp;redirect_uri=http://www.facebook.com/connect/login_success.html" rel="noreferrer">https://graph.facebook.com/oauth/authorize?client_id=<strong>APP_ID</strong>&amp;scope=manage_pages&amp;redirect_uri=http://www.facebook.com/connect/login_success.html</a></p></li> <li><p>then <a href="https://graph.facebook.com/oauth/access_token?client_id=__APP_ID__&amp;redirect_uri=http://www.facebook.com/connect/login_success.html&amp;client_secret=__APP_SECRET__&amp;code=__CODE_FROM_PREVIOUS_REQUEST__" rel="noreferrer">https://graph.facebook.com/oauth/access_token?client_id=<strong>APP_ID</strong>&amp;redirect_uri=http://www.facebook.com/connect/login_success.html&amp;client_secret=<strong>APP_SECRET</strong>&amp;code=<strong>CODE_FROM_PREVIOUS_REQUEST</strong></a></p></li> <li><p>Using the Graph API Explorer with the request /me/accounts you can see the access tokens for each Pages that you are administrator. The problem is that those access token are short-lived.</p></li> <li><p>Convert your short-lived access token to a long-lived (extending access token):</p></li> <li><p><a href="https://graph.facebook.com/oauth/access_token?client_id=_APP_ID_&amp;client_secret=_APP_SECRET_&amp;grant_type=fb_exchange_token&amp;fb_exchange_token=_ACCESS_TOKEN_ON_STEP_4_" rel="noreferrer">https://graph.facebook.com/oauth/access_token?client_id=_APP_ID_&amp;client_secret=_APP_SECRET_&amp;grant_type=fb_exchange_token&amp;fb_exchange_token=_ACCESS_TOKEN_ON_STEP_4_</a></p> <p>You can now test your new access token with the Access Token Debugger.</p></li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload