0

My server went offline for a day and now facebook has stopped sending requests to my webhook. This is the error message i get:

Your Webhooks subscription for callback URL https://myurl has not been accepting updates for the past 0 minutes. This subscription has been disabled. To reactivate, just make a POST request with the same parameters or visit the Webhooks tab in the app dashboard. Scopri di più about Webhooks.

What post request is he talking about? i went to webhooks tab but doesnt seem to have any effect. Anyone had this problem?

Pjotr Raskolnikov
  • 1,558
  • 2
  • 15
  • 27
  • Review https://developers.facebook.com/docs/graph-api/webhooks/getting-started. The `POST` is how to do it automatically via `app/subscriptions` in the API; you can also configure it in the Webhooks tab manually. (It's more than just *visiting* the tab.) – ceejayoz Sep 06 '18 at 17:04
  • ok but what should i do on that tab? i have a select with these values Page Native Components Permissions Application Instagram Certificate Transparency and a edit subscription button. i edited subscription e successfully verified the endpoin url with the token but im still not receiving post requests when users write in the chat – Pjotr Raskolnikov Sep 06 '18 at 17:39
  • Same thing you did the first time when you set it all up. The "Configuring the Webhooks Product" bit of the docs I linked you has a step-by-step. – ceejayoz Sep 06 '18 at 17:40
  • i have a select with these values Page Native Components Permissions Application Instagram Certificate Transparency and a edit subscription button. i edited subscription e successfully verified the endpoin url with the token but im still not receiving post requests when users write in the chat – Pjotr Raskolnikov Sep 06 '18 at 17:41
  • You have to subscribe to specific events. https://developers.facebook.com/docs/messenger-platform/webhook/ Again, this is something you or another dev on your team has already done once. – ceejayoz Sep 06 '18 at 17:43

2 Answers2

0

Just send this post request after adding your messenger app access token:

curl -X POST "https://graph.facebook.com/v2.9/me/subscribed_apps?access_token=[MESSENGER_ACCESS_TOKEN]"
Ayman
  • 41
  • 3
0

Send POST request with your access token and subscribed_fields.

https://graph.facebook.com/v6.0/me/subscribed_apps?access_token=[ACCESS_TOKEN_here]&subscribed_fields=messages,messaging_postbacks,messaging_optins,message_deliveries,message_reads

Also, you can do this manually at the https://developers.facebook.com/ by checking "Subscription Fields"

Mitko Keckaroski
  • 954
  • 1
  • 8
  • 12