微信公众号获取用户基本信息都是空的
由于并未开发公众号手机网页版,获取公众号用户都是在后台通过访问接口:https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN获取用户信息的,但是看开发文档上写着昵称和头像也不返回了,那么我想请问像我这种通过后台获取用户的代码,获取到用户后怎么鉴别某个openid是那个微信号的呢,我想给系统账号绑定openid我该怎么选呢。。。
微信公众号获取用户基本信息都是空的?The WeChat official account is empty for basic user information?
微信公众号获取用户基本信息都是空的?微信公众号获取用户基本信息都是空的
由于并未开发公众号手机网页版,获取公众号用户都是在后台通过访问接口:https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN获取用户信息的,但是看开发文档上写着昵称和头像也不返回了,那么我想请问像我这种通过后台获取用户的代码,获取到用户后怎么鉴别某个openid是那个微信号的呢,我想给系统账号绑定openid我该怎么选呢。。。
WeChat official account mobile phone official account is empty. Because no public phone web page is available, users access the official account through the background. https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN The user information is obtained, but the nickname and avatar written on the development document are not returned. Then I would like to ask me how to identify the micro signal of an openid after obtaining the user through the background. I want to bind the openid to the system account. What should I choose...
回答:
只有头像和昵称不返回了。反正强制你必须通过用户主动授权才能获取。
改了接口也可以,但是我这个该怎么解决呢
原文出处:微信公众号获取用户基本信息都是空的?
在新规定下除了让用户通过H5授权登陆然后使用 /sns/ 接口去获取用户昵称和头像,没其它解决方案。