skip to Main Content

I have a test application with a verified webhook and a connected test user in the Meta developers console. The webhook has two subscriptions: messages and messaging_postbacks. The webhook receives the messages callbacks but doesn’t receive postbacks when the test user clicks postback buttons in the chat. Could you please tell what is the problem?

In the same time it receives test messaging_postbacks from the developer console.

2

Answers


  1. Chosen as BEST ANSWER

    It seems that subscription in the meta developers console interface doesn't work.

    enter image description here

    It requires to sent a POST request like this

    curl -i -X POST "https://graph.facebook.com/PAGE-ID/subscribed_apps
        ?subscribed_fields=messaging_postbacks
        &access_token=PAGE-ACCESS-TOKEN"
    

    See the docs https://developers.facebook.com/docs/messenger-platform/webhooks#subscribe-your-page


  2. For me, I needed to go to “Messenger” > “Settings” and then under the “Webhooks” panel, “Edit”.

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