API - Missing permission for client_pages
1

We have created system user under our business and we named it admin. We have generated token (TOKEN) for this user with permission business_management.

Our goal is to add some pages to our Business (Request Access to a Page). For this we we using endpoint: https://developers.facebook.com/docs/marketing-api/reference/business/client_pages/

For some of the pages (like 105266342363908) I am able to call this API endpoint:

curl --location 'https://graph.facebook.com/v19.0/BUSINESS_ID/client_pages?access_token=TOKEN' \ --header 'Content-Type: application/json' \ --data '{ "page_id": "105266342363908", "permitted_tasks": "['\''MANAGE'\'', '\''CREATE_CONTENT'\'', '\''MODERATE'\'', '\''ADVERTISE'\'', '\''ANALYZE'\'']" }' For this call, this is response I am getting: Status 200 Ok { "access_status": "PENDING" }

But for some other pages like 111366221744056, for this request:

curl --location 'https://graph.facebook.com/v19.0/BUSINESS_ID/client_pages?access_token=TOKEN' \ --header 'Content-Type: application/json' \ --data '{ "page_id": "111366221744056", "permitted_tasks": "['\''MANAGE'\'', '\''CREATE_CONTENT'\'', '\''MODERATE'\'', '\''ADVERTISE'\'', '\''ANALYZE'\'']" }' This is response: 400 Bad Request { "error": { "message": "(#100) Missing Permission", "type": "OAuthException", "code": 100, "fbtrace_id": "AFs_JzHmMstKZnufqe7ZNSn" } }

For both pages I am able to send request trough Meta Business Portfolio successfully? What is missing permission in second case? This seems to be working fine from Business Portfolio (Settings). (When I try to send request manually)

I hope u can help us with this! Thanks in advance

Miki
Asked about 3 weeks ago