Suggestions On How to Handle Facebook Login/Connect On Website for Preexisting Users -


i run membership website, , on site users can join free. can pay upgraded subscription. login details email/password.

i integrated facebook connect/login site. on login/signup page, have 2 new buttons: "login facebook" & "signup facebook" (you can still sign in "old" way, using email/password though)

if user clicks "signup facebook" button, new account created using persons facebook email address, , they're automatically logged in. if account exists under persons facebook email address, message appears telling them have account under email address , please sign in using "login facebook" button.

if user clicks "login facebook" button, script gets facebook email address, checks membership database on site account has matching email address, , if 1 exists logs them account. if there no account under email address within membership database, they're told no account exists under [their facebook email] , please sign one.

here core of problem/question (explanation above necessary though): thought solution integrating facebook connect/login, i've had few developers tell me highly unexpected behavior user click "login facebook" button , told they're unable logged in, , please signup first. they've suggested best behavior if click "login facebook" button , no preexisting account can located, 1 should automatically created under email address.

the reason see issue this, know fact i'll end plenty of people click "login facebook" button thinking they're going logged preexisting account, end creating new account because email address on facebook account , email address have within membership site 2 different email addresses.

so question what think best way handle using facebook connect/login on website given above situation?

i think best way go here, if upon facebook login not find existing account (matching email address or facebook user id obtained on previous fb login), alert user fact , ask them first, if want create new account – let them explicitly choose clicking button or something.

at same time, tell them if have existing account on site , want “link” facebook account, should log in existing account (via email & password) first, fb account can matched it.

if email address facebook , matches existing account, might want join accounts automatically – making step, “hey, found account email address already, want link existing account facebook account?” not hurt either. (if want automatically, best alert users fact happen somewhere in section/faq beforehand nevertheless – that’s there’s no surprises anyone.)


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -