在这里,我正在分享我的一些细节WHATSAPP
,WEBSITE
为此我搜索了很多但我没有回答,如果有人知道意味着请更新我的代码,请在搜索后查看下面我使用了此代码但它不起作用
我试过这样
<a href="https://web.whatsapp.com/send?phone=9986128665&text=I'm%20interested%20in%20your%20car%20for%20sale
">Share To WhatsApp</a>
Just saw it on a website and seems to work on latest Android with latest chrome and whatsapp now too! Give the link a new shot!
<a href="whatsapp://send?text=The text to share!"
data-action="share/whatsapp/share">Share via
Whatsapp</a>
Rechecked it today (17th April 2015):
在 iOS 8(iPhone 6,最新版本)Android 5(Nexus 5,最新版本)上为我工作。
它也适用于 Windows Phone。
https://**api**.whatsapp.com
不使用https://**web**.whatsapp.com
<a href="https://api.whatsapp.com/send?phone=9986128665&text=I'm%20interested%20in%20your%20car%20for%20sale
">Share To WhatsApp</a>
如果您想分享到 WhatsApp,请跳过该phone=[number]
部分。
这phone=[number]
是为了让您与该号码开始新的聊天,这将失去分享/转发的功能。
您的代码是正确的,但前提是用户在观看您网站的同一设备上安装了 Whatsapp。
相反,它必须首先在其设备上安装 Whatsapp 才能开始发送消息。
PS:替换https://web.whatsapp.com
为https://api.whatsapp.com
它会在每台设备上都像魅力一样工作。