Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sharing link for WhatsApp Web version?

I placed a button on my website with a link for people to share articles on Whatsapp. The code is this and works fine:

<a href="whatsapp://send?text=Hello%20World!">Hello, world!</a>

But this doesn't work on the desktop version. Does anybody know the url to share text/link on the Whatsapp Web? This here: https://web.whatsapp.com

like image 347
Dan Cortazio Avatar asked Mar 26 '15 16:03

Dan Cortazio


People also ask

What is the URL for WhatsApp web?

To connect your web browser to your WhatsApp client, simply open https://web.whatsapp.com in your Google Chrome browser. You will see a QR code --- scan the code inside of WhatsApp, and you're ready to go.

How do I create a URL for WhatsApp?

How to create a Short Link in WhatsApp. Open the app and navigate to Settings > Business Tools > Short Links. Tap “short link” to view the link. Tap the link icon to copy the link and paste it into a message, social post, or add it to another website.


2 Answers

Note: To create a link with a pre-filled message, use this link (works only for the Whatsapp web version!)

Example:

<a href="https://web.whatsapp.com/send?text=textToshare" target="_blank">Share via Whatsapp</a>

Note: you can use this link which includes a pre-filled message which will automatically appear in a chat text field (works for all platforms!)

Example:

<a href="https://api.whatsapp.com/send?text=textToshare" target="_blank">Share via Whatsapp API</a>

https://api.whatsapp.com/send?text=textToshare

like image 152
h3t1 Avatar answered Sep 28 '22 07:09

h3t1


To create your own link with a pre-filled message that will automatically appear in the text field of a chat, use https://wa.me/whatsappphonenumber/?text=urlencodedtext where whatsappphonenumber is a full phone number in international format and URL-encodedtext is the URL-encoded pre-filled message.

Example: https://wa.me/15551234567?text=I%27m+interested+in+your+car+for+sale

To create a link with just a pre-filled message, use https://wa.me/?text=urlencodedtext

Example: https://wa.me/?text=I%27m+inquiring+about+the+apartment+listing After clicking on the link, you will be shown a list of contacts you can send your message to.

like image 29
Mr B Avatar answered Sep 28 '22 08:09

Mr B