[英]How to identify users registering through Facebook and Google+ on an Android app?
My android application has login functionality using Facebook and Google+. 我的Android应用程序具有使用Facebook和Google+的登录功能。 How can I identify users who have registered through this method and the normal users look up is done on the basis of user/pass and I am getting tokens in place of passwords here?
如何识别通过此方法注册的用户,并且普通用户是根据用户名/通行证进行查找的,因此我在这里获得令牌代替密码?
If users are logged into your app, I assume that you received access token, sent it to facebook/google and got profile information, right? 如果用户登录到您的应用程序,则假定您已收到访问令牌,并将其发送到facebook / google并获取了个人资料信息,对吗?
Somewhere in your database, where you keep your users, you have a table of users with a column "passwords". 在数据库中某个保留用户的位置,您具有一个带有“密码”列的用户表。 So query through this table.
因此,查询此表。 If password is null - notify.
如果密码为空-通知。 Else - don't notify.
否则-不通知。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.