[WhatsApp] 如何在webpage 傳送WhatsApp message

在網頁中, 除了不同social media 的button 外, 最近還多了WhatsApp icon, 當按下去時, 它便會彈出dialog 並選擇contact, 其實做法好簡單如下:

whatsapp://send?text=<<EncodedContent>>

若加入HTML 的話, 內容如下:

<A href="whatsapp://send?text=Hello%20World">Click here to send WhatsApp message.</A>

Reference

FAQ Android, WhatsApp

 

About C.H. Ling 262 Articles
a .net / Java developer from Hong Kong and currently located in United Kingdom. Thanks for Google because it solve many technical problems so I build this blog as return. Besides coding and trying advance technology, hiking and traveling is other favorite to me, so I will write down something what I see and what I feel during it. Happy reading!!!

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.