Topic-icon Connect to Facebook From Linked Account Menu Item doesn't work

Active Subscriptions:

None

When I click "Connect to Facebook" in the Linked Accounts Menu Item of JFBconnect (where you manage all the linked accounts). it doesn't work properly. I would expect a popup, or for it to take me to facebook to sign in. When I enabled the LinkedIn plugin for example, it brings me to a linkedIn sign in page when I click this.

The Facebook connect seems to work though when I am signed out, and click the Login with Facebook link from the login module. However this is not what we want given the workflow of our network. I automatically sign people in to Joomla with a secret token, so they are already signed in. I want to give them an option to link up with facebook while they are already authenticated and signed in. This way they don't need to remember another username and password the next time they sign in. Any idea what could be wrong?
The topic has been locked.
Active Subscriptions:

None
It sounds like a similar issue that this person ran into: www.sourcecoast.com/forums/jfbconnect/jf...ount-settings#p53915
Looks like they resolved it by hiding the popup for facebook, but still I agree with them it would be nice to have popup. Without popup it feels a bit abrupt leaving to facebook and it doesn't say the App name till you sign in.
The topic has been locked.
Support Specialist
Sorry for the delayed response. It sounds like the solution in that thread worked for you, even if it's not your ideal solution.

As for using the popup, it is on our to-do list to investigate how to make that work. I agree the popup would be nicer for linking accounts. However, it's actually a bit more difficult since the popup has different functionality and expects that the user doesn't already have an account on your site. I know that doesn't make things easier to hear, but hopefully helps explain that it's not a simple 1-line fix. If we do come up with a solution soon, we'll gladly provide the code change to you.

Thanks,
Alex
The topic has been locked.
Support Specialist
10 years 7 months ago #55561 by mel
Actually, after some more investigation, we think we've found an extremely simple code fix that will make this work :)

In /components/com_jfbconnect/views/account/tmpl/default.php around line 49, change
<a href="javascript:void(0)" onclick="jfbc.login.provider('<?php echo $providerName;?>')">
to
<a href="javascript:void(0)" onclick="jfbc.login.provider('<?php echo $providerObj->systemName;?>')">

Can you try this and let us know if it resolves your problem?

-Melissa
The topic has been locked.