sharewechat

Implement WeChat social share button


I'm trying to find a way to implement Social Share button to share via WeChat (the same as we can do for the Twitter, Facebook, etc). Not the whole website, just copied link or selected good.

I've found the official docs with JS SDK of Weixin API: https://developers.weixin.qq.com/doc/offiaccount/en/OA_Web_Apps/JS-SDK.html#10 , but according to the answer it works only with the integrated WeChat browser.

WeChat also doesn't allow to use deeplink directly to the app (like weixin://dl/posts), so there are also no way to implement direct sharing with passing params.

Is there any possibilities to share content via WeChat from non-WeChat browser (like Chrome, Safari, etc)?


Solution

  • If someone still searching for any solution, some sort of workaround for mobile devices might be Web Share Api .

    Note: Be careful, it doesn't have good browser support: https://caniuse.com/web-share