I'm developing an application to integrate via the Conversation API for Messenger and Instagram. I followed the instructions in the documentation. So, I obtain an access token through configuration with the following permissions:
Messneger PERM:
pages_messaging pages_show_list pages_manage_metadata business_management Instagram additions
Instagram PERM:
pages_show_list pages_manage_metadata instagram_manage_messages instagram_basic business_management
Steb-by-step procedure
I exchange the short-lived token for a long-lived one.
I call the endpoint to get the list of linked pages "/me/accounts."
From here, I get the pageAccessToken and pageID, which I then save.
I subscribe to the webhook via a POST request to /subscribed_apps with subscribed_fields = message.
When I test it, everything works fine (I use the development team's pages or the company pages), I can successfully subscribe to the webhook and send/receive messages. However, when the tester tests the app during the app review, they are unable to link the pages (the webhook subscription fails).
{
"error": {
"message": "Permissions error",
"type": "FacebookApiException",
"code": 200,
"fbtrace_id": "..."
}
}
By debugging the token, I noticed that the tokens generated by me are correct (they contain the permissions mentioned above). However, for those generated by the tester, the access tokens are correct, but the pageAccessTokens do not contain any permissions. I can't understand why, when we (the team) connect, we can use the pages correctly, but the tester cannot.
INFO: - Api version: v22.0 - API url: https://graph.facebook.com/ - Onboarding procedure using JS SDK and configuration regitered on Login for business~ - Developing on ReactJs (Remix)

Tag:-

Add a new comment.