Posts tagged with whatsapp

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)                  } 

I am working on whatsapp business api integration. I need certificate to do registration. I Followed the steps mentioned in the documents, added whatsapp account in facebook business manager but "Whatsapp manager" option is not showing. It is supposed to be like this gif: https://files.helpdocs.io/bctwm4322q/articles/u76nm7l1mc/1637669423221/11-business-manager-1.gif

any solution for this?

So I am working on creating a native app for Whatsapp business users so that they can use this app to effectively chat with their contacts on Whatsapp. This mean that if another user messages a business user on Whatsapp then the business user is able to view the same message on a different app and respond to them from that app only.

Does Whatsapp API or any 3rd party like Twilio allow that to happen?

I tried using Twilio but it doesn't really work the way as mentioned above