公众号接口没有返回用户昵称

小程序 文章 2022-01-02 20:40 259 0 全屏看文

AI助手支持GPT4.0

公众号接口没有返回用户昵称The official account interface did not return the user's nickname

公众号接口没有返回用户昵称

GET https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN

这个接口返回的数据结构里;哪个字段是表示微信昵称和头像的



GET https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN In the data structure returned by this interface; Which field represents wechat nickname and avatar

回答:

kkk:

这个说的是小程序;我的应用场景的公众号;

青寒:

这个接口官方已经调整了,不再返回头像和昵称信息(因为没有经过用户主动授权)。

你可以在你公众号后台通知中看到通告。

目前可以想办法引导用户通过网页授权,主动授权后,开发者获取用户昵称、头像。

-EOF-

AI助手支持GPT4.0