32
Views
2
Comments
[WhatsApp Business] Getting error while using Whatsapp Business Forge Component
Question
whatsapp-business
Web icon
Forge asset by Caio Santana Magalhães
Application Type
Mobile
Service Studio Version
11.53.14 (Build 61243)

Hello,

     I'm using Whatsapp Business for OTP purpose, when I use WA send Message, I'm getting the below error.

WA_SendMessage
System.Net.WebException: The remote name could not be resolved: 'whatsapp_business_api'
    at Object.s [as getException] (https://stengg-dev.outsystemsenterprise.com/eSOC/scripts/OutSystems.js?LTlhHECPOUxqT4vuxlhDGg:2:6362)
    at c.onSuccess (https://stengg-dev.outsystemsenterprise.com/eSOC/scripts/OutSystems.js?LTlhHECPOUxqT4vuxlhDGg:3:709)
    at XMLHttpRequest.<anonymous> (https://stengg-dev.outsystemsenterprise.com/eSOC/scripts/OutSystems.js?LTlhHECPOUxqT4vuxlhDGg:2:28299)
V @ Logger.js:476 



Regards,

Mohamed Zubair Ahmed

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Ahmed,

The error indicates that you are trying to reach a URL that is "whatsapp_business_api", which is of course not a valid URL. Isn't there some Site Property or other configuration you need to change to point to an actual URL?

2021-04-17 09-53-48
José Gonçalves

Hi Ahmed,

that component doesn't allow you to send messages directly, it's just examples.

You can however configure your own account with Meta and use their WhatsApp Business Cloud API to send for free messages (up to a daily limit, then it's paid).

https://developers.facebook.com/docs/whatsapp/cloud-api/

The API to send messages is the following:

POST https://graph.facebook.com/v14.0/{PhoneNumberId}/messages

Once you get your account configured and verified you'll get your PhoneNumberId.

Regards

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.