0

I'm working on integrating a messaging app using the Messenger Platform and facing an issue when trying to subscribe to a Facebook Page's webhooks via the /subscribed_apps endpoint.

Request:

POST https://graph.facebook.com/v22.0/{PAGE_ID}/subscribed_apps?subscribed_fields=message_echoes,message_edits,message_reactions,messages&access_token={PAGE_ACCESS_TOKEN}
  • Expected behavior:
    • The app should successfully subscribe to the page’s webhooks.

Actual response:

{
  "error": {
    "message": "(#200) User does not have sufficient administrative permission for this action on this page. If the page business requires Two Factor  Authentication, the user also needs to enable Two Factor Authentication.",
    "type": "OAuthException",
    "code": 200,
    "fbtrace_id": "Ab58ialaH2fMfZVOxrk4z06"
  }
}

What I’ve confirmed:

The System User Access Token has advanced permissions like pages_messaging, business_management, etc. The Page Access Token is valid for the intended page. The user has full admin control over the Page, Business, and Instagram account and has Two-Factor Authentication enabled. The app is in Live Mode with approved permissions. The business is linked correctly to the app.

Anomaly:

When I query the /accounts edge for the page, the response does not include the tasks array, unlike other working integrations.

Question:

Is there any additional setup required for a System User to subscribe an app to a page’s webhooks? Could the missing tasks array indicate a misconfiguration that’s preventing the webhook subscription?

2
  • Check what permissions the system user has over assets, developers.facebook.com/docs/marketing-api/system-users/guides/… If it is missing task assignments on the page in question, check a bit further up the page, on how to assign them. Commented Apr 25 at 9:35
  • Thank you for getting back to me and helping me out @C3roe! I do really appreciate your support. After reading some more documentation, I guess I figured it out on this page: developers.facebook.com/docs/marketing-api/business-manager/…. The system user created indeed lacked the task assignments on the page, which are required to enable the webhooks. Commented Apr 26 at 8:55

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.