Ngừng hoạt động một phầnshare-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
Đã hỏi khoảng một tháng trước
Luciano

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

15 tháng 10 lúc 16:19
Câu trả lời được chọn
1

Same here!

15 tháng 10 lúc 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.

18 tháng 10 lúc 10:44
Luciano