Facebook page leadgen webhook returns error 102 Se

2019-04-11 10:59发布

问题:

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.

回答1:

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:

Applications will only be able to receive test webhooks sent from the app dashboard while they are in development. No production data, including that of app admins, developers, and testers, will be delivered unless the app is live.

It took me a while to figure that out since the webhooks had been working previously. Hope this helps some people!



回答2:

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 :

-> go to business manager
-> go to busienss settings
-> go to leads access tab
-> select your page
-> click "CRMs"
-> Select your app and assign access

Hurray