Webhook Issue: Not receiving message events from partner business WhatsApp numbers
1

Hi, everyone. I'm facing an issue with receiving events on my webhook for messages sent to WhatsApp numbers.

Here is the scenario:

I have a webhook configured to receive events for messages sent to WhatsApp numbers.

I can receive events normally when messages are sent to WhatsApp accounts that belong to my own business (my business portfolio).

However, I do not receive events on the webhook when messages are sent to numbers registered on WhatsApp accounts of other businesses, even though these businesses are partners and have granted the necessary permissions.

These businesses were registered through WhatsApp's "Embedded Signup".

The number below belongs to my business, and I registered and verified it through the Meta app's admin panel. I can send messages via API using this number, and all messages sent to it are received by the webhook:

{ "data": [ { "verified_name": "Produtivi", "code_verification_status": "EXPIRED", "display_phone_number": "+55 48 9108-8964", "quality_rating": "GREEN", "platform_type": "CLOUD_API", "throughput": { "level": "STANDARD" }, "webhook_configuration": { "application": "https://whatsbot.produtivi.com.br/api/webhook" }, "id": "137958106074894" } ], "paging": { "cursors": { "before": "QVFIUmgxektWZAHFvNWlIVFQzNHdPUk41V0Y2NWNHNndmNE1lS012SEwyRXY1bno3RWxSSEZAabGxYUmhNcF9ZAYVdYcGUZD", "after": "QVFIUmgxektWZAHFvNWlIVFQzNHdPUk41V0Y2NWNHNndmNE1lS012SEwyRXY1bno3RWxSSEZAabGxYUmhNcF9ZAYVdYcGUZD" } } }

The number below is a fictitious client, and I registered it using WhatsApp's embedded signup. I can even send messages via API using this number, but I do not receive any WhatsApp messages sent to it on the webhook.

{ "data": [ { "verified_name": "Empresa Borges", "code_verification_status": "VERIFIED", "display_phone_number": "+55 48 8858-7469", "quality_rating": "GREEN", "platform_type": "CLOUD_API", "throughput": { "level": "STANDARD" }, "last_onboarded_time": "2024-10-28T18:00:37+0000", "webhook_configuration": { "application": "https://whatsbot.produtivi.com.br/api/webhook" }, "id": "488739230982719" } ], "paging": { "cursors": { "before": "QVFIUjNDWGMtWTJHcFI1TUl2aUZATYjd5ZAWJMSE1jc0doNG5KSlo3ajRTYzdLMmFfT2l4eHRnRTduaGxhbWthTDE5VlFmZA01vVExqM3ZADRDgzUmlFcEFwekp3", "after": "QVFIUjNDWGMtWTJHcFI1TUl2aUZATYjd5ZAWJMSE1jc0doNG5KSlo3ajRTYzdLMmFfT2l4eHRnRTduaGxhbWthTDE5VlFmZA01vVExqM3ZADRDgzUmlFcEFwekp3" } } }

I can't identify why the message events from these numbers are not being received on the webhook.

I have attached some screenshots to better illustrate the problem.

Has anyone experienced something similar or have any idea what could be causing this issue?

Thanks in advance for the help!

Ricardo
Вопрос задан в понедельник
Michael

A WABA account could not message another WABA account (for reasons I don’t know). I guess that is the reason. Have a look into the FAQ for sending messages.

28 октября в 15:44
Ricardo

Hello Michael, thank you for your comment.

Please note that I am able to send messages. I use the Meta bearer token generated from my app’s owner account to send messages from a number linked to another account created through WhatsApp’s embedded signup.

The problem is that I can’t receive information on incoming messages from this number in the webhook registered in my app.

Do you have any suggestions on how to receive these message events in my webhook?

28 октября в 17:00
Выбранный ответ
1

I wasn't aware that it was necessary to individually subscribe each WABA for which you want to receive Webhooks. After obtaining the WABA ID, subscribe your app with the ID to start receiving Webhooks.

I subscribed the WABA to receive the webhook, and it worked.

For example:

curl -X POST \
'https://graph.facebook.com/v21.0/102289599326934/subscribed_apps' \
-H 'Authorization: Bearer EAAJi...'

The complete explanation is at this link. https://developers.facebook.com/docs/whatsapp/embedded-signup/webhooks#subscribe-to-a-whatsapp-business-account

28 октября в 20:13
Ricardo