Reputation: 496
I follow this Facebook's guide: https://www.facebook.com/marketingdevelopers/videos/883648801749520/
I set up successfully all these steps:
{ "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"
Upvotes: 1
Views: 4618
Reputation: 496
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!
Upvotes: 1