How do I link to wechat from a webpage?

Rich picture Rich · Feb 16, 2016 · Viewed 77.4k times · Source

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?

Answer

garbetjie picture garbetjie · Feb 23, 2016

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: