Posts under category Facebook WhatsApp Business API

Can Whatsapp Cloud API be used for business as a reseller? like what is the difference between the new Whatsapp Cloud API and the API we get from Resellers?

Also, is there an API to automate the signup process?

I am using "WhatsApp Business On-Premises API" for submitting templates. When something is wrong with template i.e. formatting whatsapp throws exception in this format

{   "error": {     "code": 100,     "type": "OAuthException",     "message": "Invalid parameter",     "fbtrace_id": <id>,     "is_transient": false,     "error_subcode": 2388047,     "error_user_msg": "Message body can't have more than two consecutive newline characters.",     "error_user_title": "Message body format is Incorrect"   } } 

i want documentation for all the error_subcodes so that i can translate them and show bases on the language for the user who is submitting the template. PS: i have seen https://developers.facebook.com/docs/whatsapp/on-premises/errors#error but doesn't give all the error_subcodes fall under code 100.

i've also posted over community but couldn't get help there https://developers.facebook.com/community/threads/367295468710196/?post_id=367295472043529

Meta recently released the cloud api to send messages from Whatsapp business, but I can't send it from the google app script.

I have this code, it runs fine... but it doesn't reach the user

    function SendToUser() {       var headers = {         'Authorization' : 'Bearer ACCESS_TOKEN',         'Content-Type': 'application/json'         };                   var payload = {         "messaging_product": "whatsapp",         "recipient_type": "individual",         "to": "PHONE_NUMBER",         "type": "text",         "text": { // the text object            "preview_url": false,            "body": "MESSAGE_CONTENT"         }        }               var options = {         method: "POST",         headers: headers,         payload: JSON.stringify(payload) // <--- Modified       }            let response = UrlFetchApp.fetch("https://graph.facebook.com/v13.0/FROM_PHONE_NUMBER_ID/messages", options);       Logger.log(response)                  } 

If anyone has worked with Twilio's WhatsApp Business API you may be able to help.

Can you please confirm this: we purchased a UK number from Twilio but we are based and operate in Kuwait. So we will be using the UK number to send WhatsApp messages to users' in Kuwait. Is that fine? Additionally, as we were waiting for Twilio to approve our number we received the attached image and not sure what it means.

We've contacted Twilio support but they're taking a while to respond. Image:

  • Note: we've been approved and Twilio is linked to our Facebook manager. So on the FB side we're good to go, but just waiting for Twilio to approve our sender number so we can use the WhatsApp API.