Pitfalls in WeChat third-party login to UF Alliance

In the past two days, Jieyoumeng has used its third-party login, and then downloaded the sdk and demo from the official website.

Then when logging in, there is always only token unionId, openid, etc., but no user information such as avatar, gender, etc. I keep looking at the demo.

Finally found this thing

I also submitted a work order in Umeng saying that there was a problem with my WeChat authentication. I'm speechless. . .

The official SDK uses an expired method. No wonder I can't get user information.

Finally changed to

mShareAPI.getPlatformInfo(this, SHARE_MEDIA.WEIXIN,new MyUMAuthListener());

One time pass.

Just sauce.

Guess you like

Origin blog.csdn.net/cs19891017/article/details/92006563