Reputation: 33
Here i am doing sharing some details WHATSAPP
from my WEBSITE
, for this i searched lot but i didn't my answer, if any one know means please update my code,Please see below after searching i used this code but it not working
I tried like this
<a href="https://web.whatsapp.com/send?phone=9986128665&text=I'm%20interested%20in%20your%20car%20for%20sale
">Share To WhatsApp</a>
Upvotes: 0
Views: 18593
Reputation: 784
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):
Works for me on iOS 8 (iPhone 6, latest versions) Android 5 (Nexus 5, latest versions).
It also works on Windows Phone.
Upvotes: 3
Reputation: 7080
Use https://**api**.whatsapp.com
not 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>
Have you searched in WhatsApp official website?
If you want to share to WhatsApp, skip the phone=[number]
part.
The phone=[number]
is for you to start a new chat with that number, which will lose the function to share/forward.
Upvotes: 1
Reputation: 46
Your code is right, but only if the user has Whatsapp installed on the same device where it's watching your website.
On the contrary, it has to install Whatsapp on its device first to start messaging.
PS: replace https://web.whatsapp.com
with https://api.whatsapp.com
and it will work like a charm on every device.
Upvotes: 1