vendredi 6 juin 2014

Quickblox android facebook login issue


Vote count:

0




I have implemented facebook login in my app, in which I also use Quickblox but I seem to have a problem. The regular way a user signs up is by username + password + email. Problem is when I try implementing the quickblox's method for facebook login it does not link the facebook account to a possibly existing regular account. Meaning, if an user already has an account but desires to login by facebook, it does not log in with his existing account but creates a new one. Here's the facebook login method from quickblox



QBUsers.signInUsingSocialProvider(QBProvider.FACEBOOK, session.getAccessToken(), null, new QBCallbackImpl() {
@Override
public void onComplete(Result result) {
if (result.isSuccess()) {
QBUserResult qbUserResult = (QBUserResult) result;
Log.d("LogIn was successful","user: " + qbUserResult.getUser().toString());
} else {
Log.e("Errors",result.getErrors().toString());
}
}
});


now I thought of something else... what if as soon as I get the OK from facebok OAUTH, I get the fb email, check if it's in my database and then log it in manually, without the "special" facebook login provided by quickblox. But then I hit another wall: I can't do it because the users' password are not accessible. I desperately need help, any will be appreciated ! Thanks



asked 19 secs ago






Aucun commentaire:

Enregistrer un commentaire