Sharing link for WhatsApp Web version?

2020-02-26 07:04发布

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

4条回答
劫难
2楼-- · 2020-02-26 07:13

Try this

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

This is new updated API link to share web pages or links to your whatsapp contacts.

查看更多
家丑人穷心不美
3楼-- · 2020-02-26 07:18

Try this link for the web version

Note: This link only works for the Whatsapp version on the web!

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

UPDATE

Note: This link works for Whatsapp web and Android versions.

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

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

查看更多
ら.Afraid
4楼-- · 2020-02-26 07:20
<a href="whatsapp://send?text=The text to share!" data-action="share/whatsapp/share">Share via Whatsapp</a>

Try this..

查看更多
时光不老,我们不散
5楼-- · 2020-02-26 07:33

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'm%20interested%20in%20your%20car%20for%20sale

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

Example:https://wa.me/?text=I'm%20inquiring%20about%20the%20apartment%20listing

After clicking on the link, you will be shown a list of contacts you can send your message to.

查看更多
登录 后发表回答