H
H
hom9k2012-06-15 12:04:21
Facebook
hom9k, 2012-06-15 12:04:21

Login to website with Facebook Oauth?

There is a site where you can register via e-mail or log in using fb / vk.

If the user logs in via FB, then FB transmits the user's mail and it can be written to the database in order to be used in some further advertising mailings. Through VK mail is not given.

This is where the question arises: a
person first registered via e-mail, and then decided to log in via FB.
Mail comes from FB and we see that the user with this e-mail is already in the database.

How to guide the user further?
1) Silently log in and bind FB-id to the user with this mail.
2) Say that the user with this e-mail is registered and offer to enter a password.
3) Keep fb_email in a separate column and just create a new user.

I note that FB does not allow logging in to third-party services if the mail in the FB itself is not confirmed.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
I
Ivan, 2012-06-15
@iSage

4) Say that there is already a user with this email. Suggest a merge. If you agree, ask for a password. If you refuse, ask for a different email address and create a new user.

R
rich, 2012-06-15
@rich

One email - one user. Silently it is better not to do. I chose the second option.

K
karenishe, 2012-06-15
@karenishe

In my services, I always merge silently (binding by e-mail). Most of the inhabitants will be glad that the service thought for them.

D
doessu, 2014-10-11
@doessu

How to make money online without investment?

U
uvlecheniehobby, 2015-08-15
@uvlecheniehobby

look here on the hobby site uvlecheniehobby.ru

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question