Posts under category Facebook WhatsApp Business API

I'm trying to implement a button that shares the current page on WhatsApp, there's no issue with using the link on phone but on desktop I can't send it to WhatsApp web or open WhatsApp web if it's not opened yet.

I was searching for long on Stack Overflow and other webpages as well on documentation, which I can't find (I only face Android documentation but not web documentation for it).

I referred to https://api.whatsapp.com nut no info can be found here. No info about WhatsApp share API here: https://developers.facebook.com/ neither on resuts from search share WhatsApp or sharing WhatsApp.

My approach is this line as I said someone posting here: How to implements whatsapp share button in website

<a href="https://api.whatsapp.com/send?text=this%20was%20amazing%20https%3A%2F%2Fwww.google.es%2F" target="_blank">Share to whatsapp</a> 

I bet that this function was moved to WhatsApp for business, are it?

OK I found this browsing on latest Google's result pages:

<a href="https://web.whatsapp.com/send?text=this%20was%20amazing%20https%3A%2F%2Fwww.google.es%2F" target="_blank">share to whatsapp web</a> 

This does not answer the question at all as it's supposed to work as a single button with detect and fallback (api.whatsapp I mean), but it can be a nice approach to show and hide one of these two options if the client is on desktop or in mobile.

If someone knows a different approach it could be nice.

Another issue/bug with this approach is that on desktop, it opens always a new web.whatsapp.com tab even if you've it opened before.

I guess whatsapp business api client is only used pre-selected company which whatsapp grant. So, i want to know my guessing is right or not.

According to official guide, i need to register phone number to whatsapp. I guess here exist whatsapp menu. but i can't see menu. (Sorry, i dont know the way website display english language)

Official guide mentions this. "If you cant see WhatsApp account option, you cant use Business API yet"

So i search how can i access Business API, and i can see this in WhatsApp FAQ.

Finally, according to below link, WhatsApp has granted to 90 pre-selected companies. https://medium.com/callbell/what-changes-with-the-release-of-the-whatsapp-business-apis-46994316b763

As a result, if i want to use whatsapp business api, i need to use service which is provided official whatsapp partner company like twilio.

Someone tell me that My result is right?

Following to this documentation https://developers.facebook.com/docs/whatsapp/business-management-api/phone-numbers about whatsapp business accounts, it is possible to have multiple phone numbers in one account. Does someone know how you can define from which number a message is send, when sending a message to a client? There is nothing in the api about sending messages.

following to the documentation you can read the phone numbers and their whatsapp id via

curl -X GET \ 'https://graph.facebook.com/v3.3/your-whatsapp-business-account-id/phone_numbers' \   -d 'access_token=your-access-token' 

example result

{   "data": [     {       "verified_name": "Jasper's Market",       "display_phone_number": "+1 631-555-5555",       "id": "1906385232743451",       "quality_rating": "GREEN"     },     {       "verified_name": "Jasper's Ice Cream",       "display_phone_number": "+1 631-555-5556",       "id": "1913623884432103",       "quality_rating": "NA"     }   ], } 

I would expect something like a senderId field when sending a message.

While trying Developer setup: Single Instance from WhatsApp Business Api with following documentation at https://developers.facebook.com/docs/whatsapp/installation/dev-single-instance#setup

Getting the following error while trying Initial Setup#Step 7

Their was an error in connecting https://localhost:9090/v1/health 

Using postman collection as suggested in Step 6. Seems to be docker issue, but not sure.

Any idea?