简体   繁体   English

通过Web链接在Whatsapp中共享信息

[英]Share info in Whatsapp via web link

I've been trying for a while build some method to share information from my web page via the Whatsapp application. 我一直在尝试构建一些方法来通过Whatsapp应用程序从我的网页共享信息。

I actually found an easy method to do it using this code: 我实际上找到了一个使用此代码的简单方法:

<a href="https://web.whatsapp.com/send?text=textToshare" target="_blank">Share via Whatsapp</a>

And it works great, but i still don't find how to know if the user really shared the information, or just got back to the web page. 它很好用,但是我仍然找不到如何知道用户是否真的共享了信息,或者只是回到了网页。

Is there a way to make this work? 有没有办法使这项工作?

Thanks. 谢谢。

It doesn't seem like you can. 看来您无法做到。 What's app doesn't seem to have an API much less analytics or webhooks. 什么样的应用似乎没有更少的分析或网络挂钩的API。

The only way you could potentially do this would be to have it launch an iframe and inject javascript to track their interactions. 您唯一可能执行此操作的方法是让它启动iframe并注入javascript以跟踪其交互。 This won't work because of cross domain security measures (think of the nasty things you could do if you weren't well intentioned). 由于跨域安全性措施,这将无法正常工作(想想如果您没有很好的意图就可以做些讨厌的事情)。 The iframe would need to be on the same domain as yours. iframe必须与您位于同一域。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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