wechatwechat-miniprogram

Some fields of userinfo return empty Wechat API


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


Solution

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