简体   繁体   中英

Sending picture in Whatsapp using html or jquery or javascript

I want to share a image using WhatsApp.
I try with this code but I only share the url:

<div id='whatsapp'>
<a data-action='share/whatsapp/share' expr:href='&quot;whatsapp://send?text=&quot; + data:post.title + &quot;-&quot; + data:post.url' title='Compartir en WhatsApp' alt='Compartir en WhatsApp'>
text
</a>
</div>

<p>Test <a href="whatsapp://send?text=Probando%20a%20compartir%20en%20Whatsapp%20con%20el%20método%20que%20explica%20el%20blog%20de%20Antonio%20Rull:%20http://antoniorull.com/2015/04/04/anade-un-boton-para-compartir-en-whatsapp/?utm_source=m%C3%B3vil&amp;utm_medium=whatsapp&amp;utm_campaign=whatsapp" target="_blank">Link</a>.</p>

https://jsfiddle.net/xy9o6u83

How can I add the url of the image to send it?

Thanks

我不认为Whatsapp有任何公共API(现在)所以我不确定你是否可以这样做。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM