I have a webhoook setup and verified. I also have a WhatsApp number approved and verified. I am able to send WhatsApp messages to any number using the verified business WhatsApp number and the WhatsApp API. However when replying to the message, the webhook is not invoked.
I did the following tests: 1. Clicked on the test button on the webhook section. Result: I receive the webhook call 2. I use the test webhook number provided to me on the configuration page to send a message. I reply to that. Again the webhook is called.
Other things I've tried. 1. Remove the webhook, add back in so it forces re verification. That passes 2. Unsubscribe and resubscribe to the "messages" event
With both of the above steps. I repeated the test using the test number and webhook works fine. But using my actual WhatsApp business account (which again is able to send message) I do not get a webhook when replied too.
Been trying to figure this out for hours. Any help would be greatly appreciated.
Thanks in advance!
Did you manage to get it work? Please share the solution, I get the same issue here. Thanks in advance
Found the solution from Meta support. There are 2 new endpoints (one for get the number connected /register, another for get webhooks up /subscribed_apps)
curl -X POST https://graph.facebook.com/v21.0//register \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{ "messaging_product": "whatsapp", "pin": "" }'
curl -X POST https://graph.facebook.com/v21.0//subscribed_apps \ -H "Authorization: Bearer " \ -H "Content-Type: application/json"
Reference https://developers.facebook.com/docs/whatsapp/embedded-signup/webhooks/
Please, let me know this works for you.