部分中斷share-external
Not receiving whatsapp webhook events even if app is correctly connected
3

Why I don't receive any whatsapp webhook?

I have an app that integrates with whatsapp api. The app is already live and first step is authentication with facebook business login. Then we ask for permissions whatsapp_business_messaging and whatsapp_business_management.

After the oauth flow we are correctly exchanging the received code with the access token. Using the access token we are able to do all the requests available with the api: create a template, getting all available phone numbers and sending a message to one of our personal phone numbers (we are correctly receiving the message to our phone number).

The problem is that when a user replies to our connected whatsapp business phone we are not receiving any webhook. Calling /phone_numbers endpoint says that the phone is correctly connected to our webhook receiving endpoin (attached screenshot).

We have other connected accounts for which we are correctly receiving the webhook. Why it doesn't work for the new one?

Anton
已發問 約 1 個月前
Luciano

Please, share your progress about this. I'm facing the same issue.

10月15日 16:19
已選擇的答案
1

Same here!

10月15日 07:55
Rodrigo
1

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.

10月18日 10:44
Luciano