skip to Main Content

I have problems receiving data from the Graph API Explorer.
I was following along this tutorial.
I already checked those posts on stackoverflow: Link1 and Link2

So I wanted to extract the same metrics but for other months like in the tutorial and built the following request (I anonymzed the business page id here):

123456789/insights?access_token={page-access-token}&metric=page_engaged_users,page_impressions&since=2023-07-01&until=2023-08-02&period=day

But I receive the following error/response:

    {
  "error": {
    "message": "(#190) This method must be called with a Page Access Token",
    "type": "OAuthException",
    "code": 190,
    "fbtrace_id": "A2g9JAQDZugWAFDHTysAr9O"
  }
}

I added "read_insights", "pages_show_list" and "pages_read_engagement" to my permissions but it does not work :-/ Even when replacing {page-access-token} with the real token in the request bar it is not working.

I’ve also made a screenshot:
screenshot

Any ideas?

Edit
I added some screenshots how my tokens were set up:
enter image description here
enter image description here
enter image description here
enter image description here

2

Answers


  1. You are missing "pages_manage_posts" permission along with other 2 mentioned by you for Pages Token. Also from latest version its required to add "business_management" permission also. Here is my working pages token screenshot

    enter image description here

    Login or Signup to reply.
  2. Remove access_token field, api explorer adds it automaticaly enter image description here

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