views:

344

answers:

1

Hi Friends,

I am developing a business site with Facebook Connect enabled and its working fine for me. Now, I came across a situation where I have a user with 2 or more FB accounts and 1 of them is registered with our site.

For example

[email protected] (Registered on Facebook and using FB connect on our site) [email protected] (Registered on Facebook but not in our site)

With above email addresses, when a user logs in with [email protected] on Facebook he gets logged in, in our site as well. But on the other side when a user logs in on Facebook with [email protected] and same time logs in on our system with [email protected] (without using FB connect).

Here I see a session conflict and trying to solve it. I hope you people will share your thoughts to help me out.

Regards

A: 

At my site ours users could use

  1. our site's account
  2. a FB account
  3. a FB account merged with our site's account (based on email).

so if someone owns more than one FB account, only the one with matching email would be merged. If someone tries to log with a FB account and that account's email is not registered within our application, a new account in our site is created.

Sergi
Hi Sergi,Here the situation is different, user is already logged in on the FB with the account which is not connect with our site, and logs in on our site with some other id (with normal login process) which is an FB connected id on our site.
Shahzad Fateh Ali
Then where's the problem? I mean, there's no way to merge both accounts if they belong to different emails. The only way would be by enabling the user to manually link your site account with the facebook one, and letting him to link more than one fb account.
Sergi