Some fields of userinfo return empty Wechat API

198 views Asked by At

I use WeChat API to get user info, but some fields are empty ("nickname" is empty). This API has worked before 12/05/2022 but it's failed now. I don't know why we cannot get these values. Please help me take a look at this. Thank you so much. https://developers.weixin.qq.com/doc/offiaccount/en/User_Management/Get_users_basic_information_UnionID.html#UinonId

Link image

2

There are 2 answers

1
Su_ On BEST ANSWER

According to the WeChat official description, this method will no longer output avatar and nickname information after 12/27/2021.

3
taolu On

20230720 updates The way to do that obsoleted.Tt's new approach of getting userInfo: wechat miniprogram 101: getUserProfile problem