FriendsOfSymfony / FOSFacebookBundle

NOT MAINTAINED - see https://github.com/hwi/HWIOAuthBundle
321 stars 140 forks source link

Bundle usage problem #92

Open zhil opened 12 years ago

zhil commented 12 years ago

I have kind of problem with bundle usage.

Client want to put ability to login using facebook directly on login account and add ability to attach users to their facebook accounts (so user with attached facebook can either use login/password or login using facebook)

Lets say user X have existing account on site with email (userX@working.email.com) And he have facebook account with email (other@home.email.com).

If he will click on "Login using facebook" button - new account will be automatically created for him (because his old account is not linked to facebook and have working email in it), which is wrong.

IMHO right solution - add ability to show custom page, something like "Your facebook account is not linked to any website account. You can either create new account (link, when user click on it - new user created and facebook linked) or login with your old account and link it to facebook (login link, user login using email/password and after that got ability to link account to facebook)

Also I am not sure, if current bundle version have ability to link already logged in user with his facebook account.

What do you think?