Company projects need to support different platforms (IOS, Android, website)
These three platforms have applied for third-party login functions on Tencent Open Platform and QQ Internet respectively.
Using a third-party account, you can log in to the application directly without filling in the site registration information.
APP ID is different.
IOS: 110xxxxxxx06
Android: 110xxxxxxx50
Website: 101xxxx07
As a result, the user open_id generated by the three platforms is also different. . .
This way there is no way to identify the same user. How to solve it?
This is how to log in with QQ. I wonder if WeChat login also has this pitfall. .
ringa_lee2017-05-16 13:02:07
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:
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.
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.
滿天的星座2017-05-16 13:02:07
After logging in with QQ, let him bind WeChat... and the two open_ids will be associated...
伊谢尔伦2017-05-16 13:02:07
Third-party login is just a way to attract traffic. Let him bind his cell phone.
黄舟2017-05-16 13:02:07
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) )
曾经蜡笔没有小新2017-05-16 13:02:07
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
黄舟2017-05-16 13:02:07
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.