使用html或jquery或javascript

时间:2016-11-14 21:08:38

标签: javascript jquery html whatsapp

我想使用WhatsApp分享图片 我尝试使用此代码,但我只分享网址:

<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

如何添加图片的网址才能发送?

由于

1 个答案:

答案 0 :(得分:0)

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