Facebook webhook for leadgen - Can't retrieve Facebook Lead Ads

Digital Marketing Facebook Marketing API 3 years ago

1.31K 1 0 0 0

_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"

User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 3 years ago
_x000D_ Finally, after hours of searching I found this answer: Facebook Messenger webhook setup, but not triggered and I send curl to my server and also got 301, so I realized that the issue was with my htaccess file, I could not fix it so I move the webhook.php to my main domain and now it works!
0 views
0 shares

No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Similar Forum


Q

What are the best SEO tools for a personal website? What website or tools should I use to build and...

What are the best SEO tools for a personal website? What website or tools should I use to build and...
Q

Why is keyword research important?

Why is keyword research important?
Q

What is SEO ?

What is SEO ?