× Joomla Facebook Connect support forum

Topic-icon JFBConnect Association Problem

Active Subscriptions:

None
14 years 11 months ago #11268 by fb_545418911
Hi Source Coast,

I have previously posted a topic about this problem I had. It was at www.sourcecoast.com/forums/topic?id=2258

Due to lack to response following a reply from me after a long time of idle from my side, I am worried that the topic might be missed out already. Thus, I have created this new topic to bring to attention. I am sorry if my impatience created problem for you.

Back to the topic, yes, the scenario described by Alex is precisely what I am facing currently. Can Source Coast please provide me with the code snippet so that I can prevent this scenario manually?

Thank you.
The topic has been locked.
Support Specialist
14 years 11 months ago #11274 by alzander
Lam,
Sorry we hadn't gotten back to you yet. We actually did some testing and code checking for this usage scenario earlier this week, but couldn't immediately recreate the issue. We also checked the code and verified that we do not allow auto-mapping of users based on email address if that Facebook user already has a mapping on your site.

Originally, we thought we'd be able to narrow this down quicker. I believe we know what the issue is now, and were already planning on doing more testing tomorrow. Basically, this is a case of a user re-mapping their account (which we do allow). If you'd like to try disabling this behavior, you can do so by modifying the /components/com_jfbconnect/controller.php file. At approximately line 84, you'll see the following block of code:
else #User already logged into Facebook. Update their Facebook mapping
{
   if ($usermapModel->mapUser($fbUserId))
...
...
}

Comment out (put a //) all of those lines from the else down to the } (about 7 lines total). Again, we're planning testing soon, but if you try it out, and it fixes your problem, we'd love to know your results.

Thanks,
Alex
The topic has been locked.