Facebook webhook for leadgen - Can't retrieve Facebook Lead Ads
Digital Marketing
Facebook Marketing API
2 years ago
5
Star Rating
1
Rating
_x000D_
_x000D_
I follow this Facebook's guide:
https://www.facebook.com/marketingdevelopers/videos/883648801749520/
I set up successfully all these steps:
In the "developers.facebook.com/apps/APP-ID", I add "webhooks" product and create subscription to page and subscribe to leadgen, In addition, I verified my callback_url successfully
I create a new page that used Facebook Javascript SDK and I send a post request using FB.api with the user page access token to the page subscribed_apps and the API returns me "{success:true}", I double checked if that worked with the Facebook graph by sending the same request just with GET method and it return me and object that looks like that:
{ "data": [ { "link": "https://www.my-url.com/", "name": "my app name", "id": "my app id" } ] }
Now, all I had to do is to send a test to my lead ad and get an update notification to my callback_url which is
https://www.my-domain.com/admin/webhook
I tried 2 different ways, the first is from my app subscription, I don't get any error but nothing happened
the second way was with "Lead ads testing tool"
https://developers.facebook.com/tools/lead-ads-testing
and I'm receiving an error with error code 301 that says "rejected"
Posted on 16 Aug 2022, this text provides information on Facebook Marketing API related to Digital Marketing. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.
Take Quiz To Earn Credits!
Turn Your Knowledge into Earnings.