Calling the API:
https:--graph.facebook.com-v21.0-{page-Id}?fields=access_token&access_token={system-user-token}
Expected behavior:
return
{
"access_token": "EAAG2vYOZCjGgBAFg..." (page token),
"id": "page-id"
}
Actual behavior:
{
"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": "ArB-d5QtFSItpkqE9-jqFdd"
}
}
It tells me that the token does not have the pages_read_engagement permission. After checking (as shown in the attached picture), it is confirmed that the token has this permission. Is it a bug or other problem? Please help me solve this problem. Thank you very much.
I checked the permissions my system user token has as follows
"scopes": [
"pages_read_engagement",
.........
], so my token permissions should be sufficient. I would be very grateful to anyone who can help me solve this problem, because I saw that many other people in the forum have encountered this problem, but they don’t seem to have solved it.