Posts under category Facebook WhatsApp Business API

I'm trying to work with the WhatsApp business API, but When I try to send a message, always gives me this error with http code 400:

"message": "(#100) Tried accessing nonexisting field (messages) on node type (WhatsAppBusinessPhoneNumber)",

URL:

https://graph.facebook.com/v17.0/NUMBER_ID/messages?access_token=**ACCESS_TOKEN** 

Body:

{     "messaging_product": "whatsapp",     "to": "5**39&&&&&&1",     "type": "template",     "template": {         "name": "hello_world",         "language": {             "code": "en_US"         }     } } 

Response:

{     "error": {         "message": "(#100) Tried accessing nonexisting field (messages) on node type (WhatsAppBusinessPhoneNumber)",         "type": "OAuthException",         "code": 100,         "fbtrace_id": "Ai8BDTgVwlWuJo6QeTmqRB7"     } } 

I am a tech provider developing a Whatsapp Integration that has the following flow:
User signs up on our platform using the Whatsapp Embedded Signup
After the sign up is complete, we retrieve the user's access token (after exchanging it for the code).
We use the user's access token to retrieve his business ID
We subscribe the business ID to a unique webhook URL
We listen for new whatsapp messages on the webhook URL and respond to the messages
Currently, we have steps 1 - 4 working. Step 5 is not working because even after subscribing to the webhook URL and receiving a success: true, sending messages to the phone number of the Whatsapp Business Account does not trigger webhook notifications on the webhook URL.
I have read all of the documentation regarding webhooks and I can't seem to find anything. I would greatly appreciate any support and can provide details if necessary.

I am having trouble to add a reaction to a message through the whatsapp API. I am receiving an good response like the one in the docs

I am posting to https://graph.facebook.com/v18.0/{fromNumber}/messages with the following data:

{   "messaging_product": "whatsapp",   "to": {toNumber},   "type": "reaction",   "reaction": {     "message_id": {messageID",     "emoji": "💭"   } }

And receiving a good response:

{   "messaging_product": "whatsapp",   "contacts": [     {       "input": {toNumber},       "wa_id": {toNumber}     }   ],   "messages": [     {       "id": {responseWaId}     }   ] } 

But sadly no reaction to the message is given

I am using PHP:

/**  * Markeer bericht met reactie  *  * @param string $toNumber  * @param string $message  * @return int  */ public function markMessageWithEmoji(string $messageId){     $url = "https://graph.facebook.com/v18.0/{$this->fromNumber}/messages";     $response = Http::withHeaders([         'Authorization' => 'Bearer ' . $this->whatsappToken,         'Content-Type' => 'application/json',     ])->post($url, [         'messaging_product' => 'whatsapp',         'recipient_type' => 'individual',         'to' => $this->toNumber,         'type' => 'reaction',         'reaction' => [             'message_id' => $messageId,             'emoji' => '💭',         ],     ]);     return $response->status(); } 

I am sure the message id is correct, since I use the same ID to set the received message as read and this works as expected

I'm curious if Twilio has any plans to support the creation and sending of carousel templates for WhatsApp, as outlined in Facebook's documentation: Carousel Templates.

In the meantime, is there a way to create and get approval for these templates directly through WhatsApp Business API (WABA) and then, once approved, send them via Twilio?

Thanks for any insights or guidance!

I`m would like to send a carousel using twilio.