Extending Facebook Page Access Token

前端 未结 2 1451
南方客
南方客 2020-12-09 12:06

i need to extend my facebook access token, I\'m calling this:

https://graph.facebook.com/oauth/access_token? 
client_id={MY PAGE ID}&
client_secret={THE          


        
2条回答
  •  甜味超标
    2020-12-09 12:19

    Scenario 5: Page Access Tokens

    When a user grants an app the manage_pages permission, the app is able to obtain page access tokens for pages that the user administers by querying the [User ID]/accounts Graph API endpoint. With the migration enabled, when using a short-lived user access token to query this endpoint, the page access tokens obtained are short-lived as well.

    Exchange the short-lived user access token for a long-lived access token using the endpoint and steps explained earlier. By using a long-lived user access token, querying the [User ID]/accounts endpoint will now provide page access tokens that do not expire for pages that a user manages. This will also apply when querying with a non-expiring user access token obtained through the deprecated offline_access permission.

    https://developers.facebook.com/roadmap/offline-access-removal/

提交回复
热议问题