0

在这里,我正在分享我的一些细节WHATSAPPWEBSITE为此我搜索了很多但我没有回答,如果有人知道意味着请更新我的代码,请在搜索后查看下面我使用了此代码但它不起作用

我试过这样

    <a href="https://web.whatsapp.com/send?phone=9986128665&text=I'm%20interested%20in%20your%20car%20for%20sale
 ">Share To WhatsApp</a>
4

3 回答 3

2
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。

于 2018-04-06T20:06:24.910 回答
1

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官方网站上搜索过吗?

如果您想分享到 WhatsApp,请跳过该phone=[number]部分。

phone=[number]是为了让您与该号码开始新的聊天,这将失去分享/转发的功能。

于 2018-04-06T13:42:06.883 回答
1

您的代码是正确的,但前提是用户在观看您网站的同一设备上安装了 Whatsapp。

相反,它必须首先在其设备上安装 Whatsapp 才能开始发送消息。

PS:替换https://web.whatsapp.comhttps://api.whatsapp.com它会在每台设备上都像魅力一样工作。

于 2018-04-06T13:45:53.890 回答