php - QQ第三方登录不同平台(IOS,Android,网站)如何识别同一用户?
阿神
阿神 2017-05-16 13:00:07
0
6
646

公司项目需要支持不同平台(IOS,Android,网站)

这三个平台分别在腾讯开放平台和QQ互联申请了第三方登录功能。

使用第三方账号可以直接登录应用,不需要再填写站内注册信息。

APP ID 是不同的。

  • IOS: 110xxxxxxx06

  • Android: 110xxxxxxx50

  • 网站: 101xxxx07

结果三个平台生成的用户 open_id 也是不同的。。。

这样就没有办法确定同一用户了。请问怎么解?

这才做到QQ登录,不知道微信登录是不是也有这个坑。。

阿神
阿神

闭关修行中......

reply all(6)
左手右手慢动作

Just found this out of the blue. . But there seems to be no good solution.
Ask a question about QQ Internet login: Unify users between multiple applications under one developer account

5.12 supplement

I found two methods on the Internet:

  1. The pitfall of creating applications on Tencent’s open platform, how can multiple applications share the same Appid? This method is suitable for applications that have not yet been launched. There is no user data that needs to be migrated, and it can be used for personal testing.

  2. When using QQ third-party login, the openid obtained by the mobile application and the website application are different for the same QQ number. This method is suitable for applications that are already in the production environment and have been trapped. User account data needs to be merged. I haven't tested this method.

滿天的星座

After logging in with QQ, let him bind WeChat... and the two open_ids will be associated...

伊谢尔伦

Third-party login is just a way to attract traffic. Let him bind his cell phone.

黄舟

You cannot unify users by relying on third-party login, you must have a unique credential. Usually it is an email or mobile phone number. You can register directly by binding the mobile phone number or email, or you can first log in through a third party and then let the user bind the mobile phone number or email (the advantage of this is that the user does not need to fill in the nickname and avatar) )

曾经蜡笔没有小新

When the first entrance comes in, a user ID is assigned internally, and then the subsequent ones are related. Add a correlation table and it will be KO

黄舟

Github does not have such a thing as openid, but it will return the user's id. You can use that id as openid, which is the user's unique identifier.

QQ is really difficult to do. If it doesn’t work, you can only get a main account and then bind it with a third party.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template