Getting permissions error when trying to search pages
1

Hi folkes, I'm having trouble performing a search using the /pages/search graph endpoint.

It insists that I'm lacking the pages_read_engagement permission but even when using the sandbox and double checking the permission exists I'm still being met with this error. I've tried user token and page token both of which offer no success.

The playground offers this debug info:

==== Query
  curl -i -X GET \
   "https://graph.facebook.com/v19.0/pages/search?q=Rasdio&access_token=<access token sanitized>"
==== Access Token Info
  {
    "perms": [
      "email",
      "pages_show_list",
      "business_management",
      "pages_read_engagement",
      "pages_read_user_content",
      "pages_manage_posts",
      "pages_manage_engagement",
      "public_profile"
    ],
    "user_id": 864006177127115,
    "app_id": 183690032221138
  }
==== Parameters
- Query Parameters


  {
    "q": "Rasdio"
  }
- POST Parameters


  {}
==== Response
  {
    "error": {
      "message": "(#10) This endpoint requires the 'pages_read_engagement' permission or the 'Page Public Content Access' feature or the 'Page Public Metadata Access' feature. Refer to https://developers.facebook.com/docs/apps/review/login-permissions#manage-pages, https://developers.facebook.com/docs/apps/review/feature#reference-PAGES_ACCESS and https://developers.facebook.com/docs/apps/review/feature#page-public-metadata-access for details.",
      "type": "OAuthException",
      "code": 10,
      "fbtrace_id": "A1D1EFAcrijaVy6wO3MROCa"
    }
  }
==== Debug Information from Graph API Explorer
- https://developers.facebook.com/tools/explorer/?method=GET&path=pages%2Fsearch%3Fq%3DRasdio&version=v19.0

Thanks so much!

Peter
Asked about 5 months ago