Webhook doesn't work when I rename the function.
1

I'm testing sending leads to my page. I have a webhook that accepts these leads. It is in the PHP class. The path is "https://work.perfectum.net.ua/facebook_leads/webhook". But recently I had a need to move it to another function, I changed the webhook to “https://work.perfectum.net.ua/facebook_leads/webhook1”, the “webhook” method remained in the same class. The access token is normally sent to the new webhook and it is confirmed. But when I submit a lead from this tool "developers.facebook.com/tools/lead-ads-testing/", it returns me the status "Failure" and the error "webhooks.delivery.rejected". The catch is that when I rename the new method to "webhook", and change the webhook address in the application settings, it starts working. That is, my webhook only works if the method is called “webhook,” although I only specify its name in the application’s webhook settings.

Илья
Asked about 2 weeks ago