Posts under category Facebook WhatsApp Business API

I'm trying to send a document media message in Whatsapp Business API using LINK instead of uploading the file, but I got the following error:

"errors":[         {            "code":1008,          "title":"Required parameter is missing",          "details":"Parameter 'id' is mandatory for type 'document'"       }    ] 

Here is the JSON request object:

{      "recipient_type":"individual",    "to":"TELEPHONE_NUMBER_HIDDEN",    "type":"document",    "document":{         "link":"google-drive/https://drive.google.com/open?id=HIDDEN_DOCUMENT_ID",       "provider":{            "name":"google-drive"       },       "caption":"CAPTION MESSAGE"    } } 

Do you have any idea regarding this? I can't use external services like Twilio.

I am new to .net-core and docker. The problem I am going to explain here is a bit tricky, but if you have any type of questions please do ask me and I will explain it more clearly.

So, I have a docker container running on my localhost for whatsapp business api, as explained in Whatsapp Business Api Documentation.

I have already downloaded Postman Collection of Whatsapp Business Api from Whatsapp Business Postman Collection.

Everything seems to be working perfectly fine. But now I want to call these pre-built apis with .net-core and get the responses. As I couldn't find anything good, or also as a newbie it's difficult for me to understand. So for some knowledge I would like to know How can I call them and get the effective response. For example, take an example of a post request for admin login

API: {{URL}}/v1/users/login Authorization -> (Basic Auth) username: admin password: **** 
RESPONSE: {     "users": [         {             "token": "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJ1c2VyIjoiYWRtaW4iLCJpYXQiOjE1NTk5MTE1NTUsImV4cCI6MTU2MDUxNjM1NSwid2E6cmFuZCI6LTQxMzgyNDE0MjYwMDI5NjA1OTl9.PYAhEilXX3GDhRo0O-M0V0aXWfL5THJkG65LfIesxh4",             "expires_after": "2019-06-14 12:45:55+00:00"         }     ],     "meta": {         "version": "v2.23.4",         "api_status": "stable"     } } 

the images for more explanation can be seen below in the request and response links.

The Login Authentication UI Image.

The Login Authentication Postman Image.

The Login Authentication Response New Password UI Image.

The Login Authentication Response Postman Image.

Now with this token I can create more users by other api calls. How can I call an api like this and get the response with token and use that token for more functionalities or api calls with .netcore.

Thank you.

I'm setting up a new connection between whatsapp and zendesk to support better Cust.service experience. The actual goal is to be able to sendout automated response through whatsapp that is triggered from salesforce, but I'm quite new to this and have limited knowledge about whatsapp API.

In our facebook business manager, I have created the Account API WhatsApp Business and also connected the phone number to the API whatsapp business, but the next step is confusing me, which I need to register the app using /v1/account node account. I dont understand this part.

further step is "Request a Registration Code" Send the telephone number and vname certificate string encoded in your base64 to request the registration code. You can request to receive your code via SMS or voice call.

Use endpoint / v1 / account to request your registration code.

POST /v1/account

{ "cc": "your-country-code", "phone_number": "your- phone-number-without-country-code", "method": "sms" | "voice", "cert": "your-verified-name-cert-in-base64", "pin": "your-existing-6-digit-pin" # required if two-factor verification is enabled }

I expect to have whatsapp template that can be used by our registered phone number and set up auto response, then later we can create trigger in salesforce using something (which I still dont know)

I am trying to configure or setup the production environment of whatsapp business api as mentioned in the link https://developers.facebook.com/docs/whatsapp/installation/prod-single-instance I have done everything mentioned in this my dockers are also running on port:9090 as can be seen in the image still I can't access it. Whenever I try to call https://localhost:9090 the error with "This site can’t be reached" occurs. Whatsapp business api does not have good documentation or tutorials till now. So this site is the only last way for me.