Do we need pages_messaging permission to receive webhook notifications of incoming messages on Instagram DM?
3

Hello! We would love to clear some details about pages_messaging permission. The page token has the permissions pages_show_list, instagram_basic, instagram_manage_messages, pages_manage_metadata, and public_profile. Our app helps restaurants to receive delivery orders via Instagram chatbot. The application works with the Messenger platform only in Instagram DM and has all the required permissions described in the documentation for working with Instagram messaging webhooks https://developers.facebook.com/docs/messenger-platform/instagram/features/webhook.

Do we need pages_messaging permission to receive webhook notifications of incoming messages on Instagram DM?

The problem is that when we send a request to subscribe a page to webhook notifications, an error is returned stating that pages_messaging must be allowed.

Example of request: curl -i -X POST \ "https://graph.facebook.com/v12.0/105402985291440/subscribed_apps?subscribed_fields=messages,messaging_postbacks,messaging_handovers,standby&access_token={token}"

Example of mistake: "error": { "message": "(#200) To subscribe to the messages field, one of these permissions is needed: pages_messaging.\nTo subscribe to the messaging_postbacks field, one of these permissions is needed: pages_messaging.\nTo subscribe to the messaging_handovers field, one of these permissions is needed: pages_messaging.\nTo subscribe to the standby field, one of these permissions is needed: pages_messaging", "type": "OAuthException", "code": 200, "fbtrace_id": "AkelUb1Kmd6Y983cbfkCaDX"}

We will be very grateful if you clarify for us what we should do in this situation.

Иван
Asked about 3 years ago