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?
2
Answers
Just send this post request after adding your messenger app access token:
Send POST request with your access token and subscribed_fields.
https://graph.facebook.com/v6.0/me/subscribed_apps?access_token=%5BACCESS_TOKEN_here%5D&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"