How to generate a QR code from WeChat user id?

friek108 picture friek108 · Aug 30, 2017 · Viewed 8.4k times · Source

I want to be able to input a WeChat user id and somehow be able to generate the corresponding WeChat QR code on the screen.. is this possible and if so how do you do it?

Answer

shaochuancs picture shaochuancs · Sep 4, 2017

Unfortunately, you can't.

3 years ago, you can generate QR code from URL: http://open.weixin.qq.com/qr/code/?username=<wechat_id>. However, this API is unavailable now. It seems Tencent disabled this interface due to security consideration -- this API can be easily abused to send spam invitation.

If you speak Chinese, please check https://www.zhihu.com/question/21384291 for discussion on this topic in history.