我如何链接到网页上的微信? [英] How do I link to wechat from a webpage?

查看:514
本文介绍了我如何链接到网页上的微信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



  Whatsapp 允许您链接到新消息 < a href =whatsapp://发送?文本=要共享的文本! data-action =share / whatsapp / shareclass =Share-link m-whatsapp> 

如何使用 WeChat

解决方案

微信确实有一个可以在浏览器中使用的URI方案。计划前缀是 weixin://



可以使用以下几个URI:

  weixin:// dl / stickers 
weixin:// dl / settings
weixin:// dl / posts
weixin:// dl / moments

然而,在回答你的问题时, ,有一个地方你可以专门与某个联系人聊天:

weixin:// dl / chat?{toID}



您需要将 {toID} 替换为目标用户的WeChat ID。



为了便于参考,这些是我从以前的信息中找到的网址:


Whatsapp allows you to link to a new message via

<a href="whatsapp://send?text=The text to share!" data-action="share/whatsapp/share" class="Share-link m-whatsapp">

How do I do the same thing with WeChat?

解决方案

WeChat does have a URI scheme that can be used from a browser. The scheme prefix is weixin://.

There are a few URIs that can be used with this:

weixin://dl/stickers
weixin://dl/settings
weixin://dl/posts
weixin://dl/moments

However, in answer to your question specifically, there is one where you can chat to a contact specifically:

weixin://dl/chat?{toID}

You will need to replace {toID} with whatever the destination user's WeChat ID is.

For reference's sake, these are the URLs that I've found this information from previously:

这篇关于我如何链接到网页上的微信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆