Posts under category Meta & Facebook

I'm working on WhatsApp API Business. So... I did registered the docker container some times before, but I had to reinstall them and this time I was unable to register the container again. When I try to request a register code I receive this kind os response:

POST {{URL}}/v1/account {     "meta": {         "api_status": "stable",         "version": "2.19.4"     },     "errors": [         {             "code": 1005,             "title": "Access denied",             "details": "There was an error verifying this phone number. Please try again later."         }     ] } 

I checked if the docker containers are running and everything looks like working well.

[root@xxxx 2-19-4]# docker ps -a CONTAINER ID        IMAGE                                 COMMAND                  CREATED             STATUS              PORTS                                NAMES bee4beefa6e7        docker.whatsapp.biz/web:v2.19.4       "/opt/whatsapp/bin/w…"   About an hour ago   Up About an hour    0.0.0.0:9090->443/tcp                2-19-4_waweb_1 a52b9c98e2f2        docker.whatsapp.biz/coreapp:v2.19.4   "/opt/whatsapp/bin/w…"   About an hour ago   Up 23 minutes       6250-6253/tcp                        2-19-4_wacore_1 13a961e53501        mysql:5.7.22                          "docker-entrypoint.s…"   About an hour ago   Up About an hour    33060/tcp, 0.0.0.0:33060->3306/tcp   2-19-4_db_1 

Anyone that passed and fixed this before could help me?

Thanks

As I need to send message on user's whatsapp number so I have downloaded WhatsApp API from nuget packages. and also I implemented code according to that. But after so many search I found that I need to register mobile number to get password...using WART but I think this application is not working and not able to get password from WhatsApp.

So if anyone implement this feature of sending message on whatsapp number in Asp.net c# then please update me how to do this using WhatsApp Api.. even I don't know whatsapp is provide any API or not.

I have tried with below code...but I need password before that..

            string fromMob = "919xxxxxxxxx";             string toMob = txtMobileNo.Text.Trim();             string msg = "This is first WhatsApp Message Whatsapp API";             WhatsApp wa = new WhatsApp(fromMob, "RequiredPassword", "SD", false, false);             try             {                 wa.OnConnectSuccess += () =>                 {                     wa.OnLoginSuccess += (phoneNumber, data) =>                     {                         wa.SendMessage(toMob, msg);                     };                     wa.OnLoginFailed += (data) =>                         {                             msg = "Login Failed" + data;                         };                 };                 wa.OnConnectFailed += (ex) =>                     {                         msg = "Connection Failed" + ex;                     };                 wa.Connect();             }             catch { } 

I have to send messages to the customer's whatsapp number programatically.

What are the pre requirements/needs?

Do I need to convert/register my personal number to business account?

Is there any API provided by whatsapp for this?