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
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 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.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With