Facebook page leadgen webhook won’t work for my page and associated app.
If I test the webhook I setup with the testing tool and click the “Track status” button, the issued realtime update object is associated to this error: 102 Server failure
My facebook setup consist of:
- a business account
- an ad account
- a page
- an app that is subscribed to webhooks for the page leadgens. Testing the webhook from the app setup does effectively work (on https://developers.facebook.com/apps/:my-app-id/webhooks/)
Page, ad accoung and app all belong to the business, and the app seems to be correctly subscribed to the page : it is listed in the results of a graph api call to /<page-id>/subscribed-apps
.
Does anyone have an idea of what I could be missing ?
Many thanks.
7
Answers
Ok I found the problem.
Although my app was correctly subscribed to the page with all valid and never expiring tokens, one authorization was missing.
If you encounter the same problem follow those steps :
Hurray
One recent change (as of May 1, 2018) is that the app Status must be “Live” in order to receive actual webhook updates. If it is left “In Development”, webhook requests will now fail with error code 102 “Server failure” (such a helpful message!), and the Webhooks page for the app (
https://developers.facebook.com/apps/{your app ID}/webhooks/
) will show a message saying:It took me a while to figure that out since the webhooks had been working previously. Hope this helps some people!
While subscribing my page to Facebook app I’ve set
leadgen_fat
instead ofleadgen
and got this error.Add
retrieve_leads
to your scope on login and be sure that your app has this permission.Then addleadgen
to subscribed fields.https://stackoverflow.com/a/54713182/7313872
I know this is really old but I came across the same issue and this is what I found.
Basically saying you will get that 102 message if you’re in dev mode, which makes no sense why they would have a testing tool you can only use when your app is “live”.
I solved the issue, this was the problem here the RTU debug tool was not working until I made my app to LIVE status then it was working properly . Also on the FB docs its clearly showing
When you previously used the Facebook documentation for the webhooks startup, the platform.php file code would subscribe you to "feed" and not "leadgen" so check that you have the correct subscription code. I logged the bug in their documentation and looks like they have fixed it.
https://developers.facebook.com/support/bugs/681262475926363/
https://developers.facebook.com/docs/marketing-api/guides/lead-ads/quickstart/webhooks-integration/
Also check that
I resolve the problem whit next CURL.
Register app to page:
leadgen
field is very importantThe response on my server is good!