Posts tagged with whatsapp

I'm having an issue with adding new products to my Facebook catalog that is integrated with the WhatsApp Business API. I have an existing catalog with products that are successfully being sent through the WhatsApp API. However, when I try to add new products, either manually or through a data feed, I receive the error message "None of the products provided could be sent. Please check your catalog."

i recently add commerce API to my app and it inactive but i can't remove it to check if this what cause the error.

Despite these efforts, the new products still cannot be sent through the WhatsApp API, while the existing/old products in the catalog work fine.

I've tried the following steps:

  1. Manually adding new products to the catalog through Facebook Business Manager.

  2. Creating a new product data feed and uploading it to the catalog.

  3. Adding new products to both an existing catalog and creating a new catalog.

  4. Waiting for 24 hours after adding the new products for the catalog to update.

Has anyone else encountered this issue or have any suggestions on troubleshooting steps I can take? I'm unsure if this is an issue with the product data, the catalog settings, or something else entirely.

In our app, we are trying to use Whatsapp Cloud API with our user's OAuth access token (received through the Facebook Login flow, and we have whatsapp_business_messaging,whatsapp_business_management and business_management scopes).

The WABA is defined in their own business.

The issue comes when we try to use https://developers.facebook.com/docs/whatsapp/cloud-api/reference/registration/ this call to finish getting access to the phone number - we receive (#200) You must accept the WhatsApp Business Cloud API terms to use the API. Check your WhatsApp Account Overview page

I'm wondering if this is some kind of terms of service that I need to accept (can't see any prompt to do so on my end), or something that our clients should accept in their WABA?

I'm developing an application similar to Confirmafy that uses the WhatsApp Business API to send messages to users. According to WhatsApp's documentation, message templates need to be pre-approved, and line breaks are not allowed within variables.

However, I've noticed that Confirmafy allows users to edit the message body, including adding line breaks, and the message is sent instantly without any apparent approval process. Here’s an example of how the message configuration looks in Confirmafy

In this configuration, I can insert line breaks and any text, and the message is delivered instantly via WhatsApp. This behavior seems to contradict WhatsApp's official documentation.

How does Confirmafy manage to send messages with line breaks in variables without needing pre-approval from WhatsApp? Is there a specific API endpoint or method that bypasses the template approval process? Are there any exceptions or special permissions required to achieve this functionality?

I already talked to Twilio and Meta support and they can´t help me. Someone know hoy can I do this? Thanks

I'm testing sending media headers through the WhatsApp API. But I keep getting the following error:

{     "error": {         "message": "(#132012) Parameter format does not match format in the created template",         "type": "OAuthException",         "code": 132012,         "error_data": {             "messaging_product": "whatsapp",             "details": "header: Format mismatch, expected VIDEO, received UNKNOWN"         },         "fbtrace_id": "AVPT6EiX3RemyP3uv4S36FZ"     } } 

I'm using a video URL to send the message and confirmed the video is publicly viewable. But I also got the same error when using the video link in the template. I know that there is a Resumable API for uploading the media, but that is not what I'm testing for here.

Any help would be appreciated.

For reference, this is the template:

{             "name": "vid_test",             "previous_category": "UTILITY",             "components": [                 {                     "type": "HEADER",                     "format": "VIDEO",                     "example": {                         "header_handle": [                             "https://scontent.whatsapp.net/v/t61.29466-34/380066992_950204086818012_8956032979900394560_n.mp4?ccb=1-7&_nc_sid=8b1bef&_nc_ohc=pmivIdgTvrAQ7kNvgEgxK28&_nc_oc=Adg2vVNVfN1TlUWzFmJxHpa830uVJRRCSKsooFiDp0E_AQ7gLbB-RIGSlx8UNvM0cXw&_nc_ht=scontent.whatsapp.net&edm=AH51TzQEAAAA&oh=01_Q5AaIFBxPaJzBmN9IaDMHWuIw-w8fQX3uHngw2A_qNyhKBVw&oe=666BB20F"                         ]                     }                 },                 {                     "type": "BODY",                     "text": "tesing {{1}} and use code {{2}} to get amazing discounts on testing videos.",                     "example": {                         "body_text": [                             [                                 "Message content",                                 "MSG25"                             ]                         ]                     }                 },                 {                     "type": "FOOTER",                     "text": "Use the buttons below to manage your marketing subscriptions"                 },                 {                     "type": "BUTTONS",                     "buttons": [                         {                             "type": "QUICK_REPLY",                             "text": "Unsubscribe from Promos"                         },                         {                             "type": "QUICK_REPLY",                             "text": "Unsubscribe from All"                         }                     ]                 }             ],             "language": "en",             "status": "APPROVED",             "category": "MARKETING",             "id": "950180443487043"         } 

And the POST message body:

{   "messaging_product": "whatsapp",   "recipient_type": "individual",   "to": "MY PHONE NUMBER",   "type": "template",   "template": {     "name": "vid_test",     "language": {       "code": "en"     }   },   "components": [     {       "type": "header",       "parameters": [         {           "type": "VIDEO",           "video": {             "Link": "https://static.vecteezy.com/system/resources/previews/006/996/488/mp4/timelapse-full-sunset-free-video.mp4"           }         }       ]     },     {       "Type": "Body",       "parameters": [         {           "type": "text",           "text": "Var 1"         },         {           "type": "text",           "text": "Var 2"         }       ]     }   ] } 

All the template messages that I post once will be received twice by the opposite user. I send messages through php API. I have two apps under one business account, and both are having the same problems. My PHP curl code is:

$messageBody = 'Welcome and congratulations!! This message demonstrates your ability to send a WhatsApp message notification from the Cloud API, hosted by Meta. Thank you for taking the time to test with us.' ; $template_array = array(     "name" => $templateName, //     "language" => '{ "code": "en_US" }',      //"components" => '' //for parameters ) ; $text_arr = array(     'preview_url' => 'false',      'body' => $messageBody ); $fields = array(     'messaging_product' => 'whatsapp',     'recipient_type' => 'individual',     'to' => 91 . $toMobile,     'type' => 'template',     'template' => $template_array,     'type' => 'text',     'text' => $text_arr ); $headers = array( "Authorization: Bearer " . $accessToken, "Content-Type: application/json", ); $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $postUrl); curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($fields) ); curl_setopt($curl, CURLOPT_HTTPHEADER, $headers ); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $response = json_decode(curl_exec($curl), true); //print_r($response); $jsonResult = curl_exec($curl) ; $resultCode = curl_getinfo($curl, CURLINFO_HTTP_CODE); echo $resultCode . ' - ' . $jsonResult ; curl_close($curl);