Posts tagged with whatsapp

I am trying to create a connection between our WhatsApp Business account and our website where we gather all messages sent to our business on different channels (through our own app, text, WhatsApp, ...).

I've followed this tutorial (https://developers.facebook.com/docs/whatsapp/cloud-api/get-started) and have everything set up: our WhatsApp Business is working correctly, I've added a Meta App and I've set up the webhooks with a connection to my node.js backend. When I click Test next to the "Messaging" webhook, I receive the message on my node.js backend and website. So I know this side is working as it should.

I've then used the Graph API to subscribe my Meta app to the messages with the business id of the WhatsApp with the correct permissions. When checking the subscribed apps with the {business_id}/subscribed_apps endpoint, I can see my Meta app. So I believe everything is set up correctly. My Meta app is also set to "production".

However, when I try to send a message with my personal WhatsApp to my business WhatsApp, I receive nothing on the webhook. I checked the logs on my server and nothing is being received, so I know it's not an issue in my node.js backend.

Is there something else I need to do to make this work? Does the Meta app need to be verified to use the webhook in production? If so, how can I do this? The guide for verification says I need a platform and login insctructions, but the Meta app is really only a webhook without an interface.

Thanks in advance.

Currently, I am using WhatsApp Business api cloud on one of my web project, I would like to register a customer's phone number but via api instead through meta, developer platform like following:

"Here is the image to register customer's number in the meta developer platform"

I want do this: (managing the phone numbers)

but via api, and later of that send the verification code via api as well. If someone can help me , telling me if that is possible and sharing documentation or the endpoint I would appreciate it very much, I've been looking at the documentation and postman's examples for 2 days without any success.

I'm sorry I didn't share the pictures directly, it is my first question on Stackoverflow

Thanks in advance, Greetings!

I have created a WhatsApp Business Platform Test account. I am able to send and receive the hello-world template message but when I send a test message without template(as specified by the api) it doesn't push it to the mobile phone. Strangely I get success response in both cases.

Url: https://graph.facebook.com/v15.0/11ZZZZZZZZZZZZZ/messages

Here are the jsons and their responses

{    "messaging_product":"whatsapp",    "to":"91ZZZZZZZZZZ",    "type":"template",    "template":{       "name":"hello_world",       "language":{          "code":"en_US"       }    } } {    "messaging_product":"whatsapp",    "contacts":[       {          "input":"91ZZZZZZZZZZ",          "wa_id":"91ZZZZZZZZZZ"       }    ],    "messages":[       {          "id":"wamid.HBgMOTE3MjkwMDIxMzYwFQIAERgSMjZCRkQ3RDc0RjM0QkNEZZZZZZ=="       }    ] } 

In these case I successfully receive message on the mobile

{    "messaging_product":"whatsapp",    "to":"91ZZZZZZZZZZ",    "type":"text",    "text":{       "preview_url":false,       "body":"Hello World Testing"    } } {    "messaging_product":"whatsapp",    "contacts":[       {          "input":"91ZZZZZZZZZZ",          "wa_id":"91ZZZZZZZZZZ"       }    ],    "messages":[       {          "id":"wamid.HBgMOTE3MjkwMDIxMzYwFQIAERgSQUJERkM2RUE1RTEwQTExZZZZZZ=="       }    ] } 

However I don't receive message on the mobile. Is there anything I am missing in the second case?

Our app already have business_management, whatsapp_business_messaging, whatsapp_business_management approval from facebook. The issue is when we try to subscribe to any business whatsapp number outside our business manager it gives us error of "error_user_title": "App not linked to a Business", "error_user_msg": "Your App is not linked to a Business or the Business doesn't have access to the WhatsApp Business Account.",