× Joomla Facebook Connect support forum

Topic-icon FB Association Problem

Active Subscriptions:

None
15 years 1 week ago #10534 by fb_545418911
Hi SourceCode,

I'm facing a very scenario-based problem and I need your advice on how to resolve it... First, the setup of the scenario:
1. I have joomla account with username "joomlaaccount" which is associated to "This email address is being protected from spambots. You need JavaScript enabled to view it." facebook account.
2. I have a browser with a tab (A) started at the website, but not logged in.
3. I have another tab with facebook logged in and active.

Here is the steps to recreate the problem:
1. I open another tab (B) and register at the website as a normal account with username "newaccount". I use a completely different email for this account.
2. I verify, activate and login to "newaccount".
3. With tab (B) having "newaccount" logged in, back at tab (A), I use FBConnect to login (again).

When I do this, what the system does is it will associate "This email address is being protected from spambots. You need JavaScript enabled to view it." facebook account to "newaccount", abandoning "joomlaaccount" altogether.
If the facebook account does not have an associated joomla account to begin with, this behavior will be fine, but if it is associated, I would like this action to be suppressed. Is there any way I can do this from the administrator's console? If there is not, can you advice where in the code should I change to suppress this behavior?

Thanks in advance!
The topic has been locked.
Support Specialist
15 years 1 week ago #10544 by alzander
Replied by alzander on topic FB Association Problem
Lam,
Let me just summarize what I think you're looking for:
If a Facebook user has an account on the site that is mapped to a Joomla account, don't automatically connect the account to any other account on the site.

I think I see where this special case can happen, and it is indeed not the best behavior. We have a way to prevent the "Reconnect" button from showing in the JFBCLogin module to prevent this, but that really disables the button.. not the reconnect functionality. I can see adding the "Prevent Reconnects" as an admin option in the future, but should be able to give you a code snippet to do the one-line statement above beforehand.

Let me know if that's what you're looking for, and thanks for calling this out!
The topic has been locked.
Active Subscriptions:

None
14 years 11 months ago #11175 by fb_545418911
Replied by fb_545418911 on topic FB Association Problem
Hey Alex,

Yes, the scenario you described is precisely what I am facing currently. Can you please provide me with the code snippet so that I can prevent this scenario manually?

Thanks!
The topic has been locked.