skip to Main Content

Using the Facebook Access Token Debugger I can see I have an access token that never expires.
https://developers.facebook.com/tools/debug/accesstoken/

However using the Graph Explorer I get the error

{
   "error": {
      "message": "(#10) To use 'Page Public Content Access', your use of this endpoint must be reviewed and approved by Facebook. To submit this 'Page Public Content Access' feature for review please read our documentation on reviewable features: https://developers.facebook.com/docs/apps/review.",
      "type": "OAuthException",
      "code": 10,


}
}

This was previously working, has something changed with Facebook? The only other thing that has changed is that my access to the Facebook App was removed then reinstated, so I now use a different access code.

Please could anyone advise what I need to do to resolve this issue, I previously did not need Facebook review to use this API last month.

Thanks

Edited: the login required screen when requesting a Page Access Token:
login required

2

Answers


  1. Chosen as BEST ANSWER

    Thanks to misorude for all your help. This is what worked for me:

    Step 1: ask the business manager to grant the user "Manage Pages" permission on both the app and the page:

    https://business.facebook.com/settings/pages/PageID?business_id=BusinessID https://business.facebook.com/settings/apps/AppID?business_id=BusinessID

    Step 2: Create the user access token (select "Get User Access Token" from the "Get Token" dropdown)

    https://developers.facebook.com/tools/explorer/

    Step 3: Check the user has access by calling your graph method using the temporary user access token

    E.g. https://graph.facebook.com/v3.3/PageID?fields=link%2Cpicture&access_token=UserAccessToken

    E.g. https://graph.facebook.com/v3.3/PageID/feed?fields=message%2Cfull_picture%2cpermalink_url%2Ccreated_time&limit=3&access_token=UserAccessToken

    Step 4: Create permanent user access token https://developers.facebook.com/tools/debug/accesstoken/ Click "Extend Access Token" at the bottom of the page and debug to reveal the token with expiry: never


  2. This is not about expiry of the token.

    Facebook has restricted API access to the data of any public pages – you now need to get your app reviewed for the use of the feature “Page Public Content Access”, before you can use it.

    https://developers.facebook.com/docs/apps/review/feature#reference-PAGES_ACCESS

    Without getting this reviewed, you can only access data from pages you have admin access to – but that in turn requires the use of a different kind of token then, a page access token. (You presumably used the general app access token, for your requests that have been working up until now. For that to keep working to access public page data, you need to submit for review of the feature.)

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search