小程序
小游戏
企业微信
微信支付
扫描小程序码分享
微信公众号,用户关注公众号后如何获取nickname,avatar?我是通过用户关注公众号的事件,获取到了openID,但是用openid调用https://api.weixin.qq.com/cgi-bin/user/info接口返回的json里nickname为空,请问通过什么方式在用户关注后,拿到openID后再拿到昵称和头像呢?
3 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html#3
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
参考文档:https://developers.weixin.qq.com/doc/offiaccount/User_Management/Get_users_basic_information_UnionID.html
目前需要获取头像昵称应该可以通过网页授权的方式,参考文档:https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html#3
需要用户授权才能拿到
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html#3
参考文档:https://developers.weixin.qq.com/doc/offiaccount/User_Management/Get_users_basic_information_UnionID.html
目前需要获取头像昵称应该可以通过网页授权的方式,参考文档:https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html#3
如果业务上需要获取头像和昵称,目前可通过OAuth2.0用户授权获取。
其他的方法暂时没有。
需要用户授权才能拿到