kriskbx / whatsapp-sharing

whatsapp sharing button + generator

Home Page:http://kriskbx.github.io/whatsapp-sharing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

code for starting whatsapp conversation (not sharing)

dogo1961 opened this issue · comments

I found out that the code for starting a whatsapp conversation (not sharing), which was the objective on my website, is:
"intent://send/1234567890#Intent;scheme=smsto;package=com.whatsapp;action=android.intent.action.SENDTO;end" data-text="Contact via Whatsapp" data-href="" class="wa_btn wa_btn_m" style="display:none">Whatsapp"

This is the code that should be typed after the a href and (of course) the code should be finalized with the /a between< > (if I write the code down literally, it shows as a weblink on this forum).

substitute "1234567890" with your (mobile) telephone number, and there you go.
The whatsapp-button.js should (of course) be and redirected in/to the right map on your server.
It took me a while to find this out via Google and to get it working, but it WORKS. I hope to have been of some help to some people here on this forum