Facebook page leadgen webhook returns error 102 Server Failure

后端 未结 7 780
梦毁少年i
梦毁少年i 2021-01-04 19:10

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,

7条回答
  •  梦毁少年i
    2021-01-04 19:33

    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/

    FB.api(
      '/' + page_id + '/subscribed_apps',
      'post',
      {access_token: page_access_token, subscribed_fields: 'leadgen'},
      function(response) {
        console.log('Successfully subscribed page', response);
      }
    );
    

    Also check that

    1. Your app is live and through review
    2. You have all the permissions.
    3. You are subscribed to the correct type aka "leadgen"
    4. Your CRM has been given access to leads and manage pages by the Business Manager Account, owner or client.

提交回复
热议问题