Posts under category Facebook WhatsApp Business API

Very newbie here and with Wix, it's the first time a client ask me for Wix and he has a special need.

Do you know if it's possible to send a whatsApp or Messenger to the owner of the shop when a new order is coming ? I need this message contain the order item and the address to deliver.

Thanks in advance for your answers.

Have a good day

Edit: I see that I can only use and send to numbers associated with Twilio. My question was to see if I didn't have to use numbers associated with Twilio, for example, if I were to make a website that can send numbers on WhatsApp, like my own WhatsApp web, how do I do that, as in how do I make a website that can send messages through WhatsApp just like WhatsApp web?

I want to make a python program, that asks for your number when you start it. It then asks for the number you want to send the message to. This code will ultimately be running on android if that helps.

from twilio.rest import Client  contact = '' contact = input('Which number do you want to send the message to: ') message = '' message = input('What do you Want to send: ') account_sid = '_'  auth_token = '_'  client = Client(account_sid, auth_token)  #some code to get my number #some code to get my number my_number = #i got my number   message = client.messages.create(                                from_='whatsapp:'+ my_number,                                 body=message,                                     to='whatsapp:' + contact ,                           )    print(message.sid) 

So it's the code to get the user's number that I need help with. Another option I've been considering is manually inputting the number and using that (I will add an OTP if I go this route but not rn). Which sounds like the better option?

I'm new to Twilio's APIs so any help would be appreciated.

I had cloned these file as per facebook instructions

And then Step 1: Create a biz Directory for the Setup Scripts

mkdir ~/biz; cd ~/biz; 

Step 2: Get the WhatsApp Business API Client Configuration Files

   db.env docker-compose.yml multiconnect-compose.yml 

Step 3: Set the WA_API_VERSION Environment Variable

export WA_API_VERSION=2.31.5 

Step 4: Start the WhatsApp Business API Client

docker-compose up -d 

The resulting output should look like the following:

Recreating whatsbusinessapi_db_1 ... done Creating whatsbusinessapi_wacore_1 ... done Creating whatsbusinessapi_waweb_1  ... done 

Step 5: Verify Containers Are Running

docker-compose ps 

output :

          Name                         Command               State                     Ports                    --------------------------------------------------------------------------------------------------------------- whatsbusinessapi_db_1       docker-entrypoint.sh -p 54 ...   Up      5000/tcp, 5432/tcp, 0.0.0.0:5000->6000/tcp whatsbusinessapi_wacore_1   /opt/whatsapp/bin/wait_on_ ...   Up      6250/tcp, 6251/tcp, 6252/tcp, 6253/tcp     whatsbusinessapi_waweb_1    /opt/whatsapp/bin/wait_on_ ...   Up      0.0.0.0:9090->443/tcp 

By default, the Webapp container will be running on port 9090 (https://localhost:9090) as per facebook but when i tried https://localhost:9090

So anyone have idea please.

I am trying to set up the WhatsApp business API client. I followed this instruction https://developers.facebook.com/docs/whatsapp/getting-started/#client-setup

At step 2 I installed "single instance" using this instruction https://developers.facebook.com/docs/whatsapp/installation/dev-single-instance

At Step 6 of the "single instance" instruction, I started Postman https://developers.facebook.com/docs/whatsapp/guides/postman.

At Step 4 of "Postman Collection" I configured AdminUsername (admin), AdminPassword (secret), NewAdminPassword (****) and URL (https://localhost:9090 [the example says 7901, but that results in error]). Response: some headers and "Status 401 Unauthorized".

Maybe this helps to find the cause: Following this post Whatsapp Business API production setup not working I ran this command docker-compose logs > debug_output.txt. This was the output: https://drive.google.com/file/d/1eXeaTeNiAiPW3A5bZ54gOg70UIPfF-vt/view?usp=sharing. (It doesn't make much sense to me...). I do have a MySQL WorkBench installed. No clue if it is installed in the same 'instance'.