Topic-icon "connecto with FB" button not showing up

Active Subscriptions:

None
14 years 2 months ago #20974 by dbarajas
Hello, I installed the FB Conenct component on J2.5 and the SClogin module. After configuring everything the "Connecto with FB" button does not show up in the login module form.

I also created the FB app and feed the component with the required keys.

Is there something obvious here that I'm missing?

Thanks in advance
Diego
The topic has been locked.
Support Specialist
14 years 2 months ago #20990 by alzander
Diego,
That's usually a sign that the JFBC System plugin isn't enabled. It can be caused by other problems such as an invalid language too. Can you provide a link to the front-end of your site, and we can investigate further?

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #20991 by dbarajas
Yeap. That was it. Plugins were not published.

However, now that is does show up it does nothing, it's a dead button. So, I'm gonna need help here anyway.

This is my URL www.socialgoapp.com

Thanks
Diego
The topic has been locked.
Support Specialist
14 years 2 months ago #20992 by alzander
Diego,
You're using a RokBox popup for the SCLogin module, which causes Javascript conflicts with Facebook. To fix, you'll need to either move the SCLogin module out of the RokBox module or modify the SCLogin module slightly to load a custom Login With Facebook button.

To modify the SCLogin module, you'll need to edit /modules/mod_sclogin/tmpl/login.php. Around line 85, you'll see some instructions for using a custom image or text link button. Follow those instructions, and you should be good to go.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #21003 by dbarajas
Thanks, it works like a charm.

However, in the logout screen it gives me the option to connect. I assume that it will link my facebook account with my joomla account regardless of the emails of both accounts, but I get the same error too and I do not see the workaround in there.

Where should I change my code to fix the logout screen as well?

Thanks
Diego
The topic has been locked.
Support Specialist
14 years 2 months ago #21007 by alzander
Diego,
Your correct. I hadn't realized that before, so thanks for pointing it out.

The Reconnect feature lets a user who's logged into Joomla, but not into Facebook, to 'connect' their accounts. Doing a connection for an already logged in user does allow a user with a different Facebook email address to the Joomla user regardless of email address in Joomla.

If you don't want that feature, it can be disabled in the SCLogin parameters under "Allow Reconnections" or something like that. To fix the button, you can edit the /modules/mod_sclogin/helper.php file. Around line 302, you'll see:
$buttonHtml .= '<fb:login-button v="2" onlogin="javascript:jfbc.login.login_button_click();">' . JText::_('MOD_SCLOGIN_CONNECT_BUTTON') .'</fb:login-button>';
Simply copy the portion of the line after "echo" that you un-commented from the login.php file into the right side of the line above, and you should be good to go.

Hope that helps, and sorry for the trouble!

Alex
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #21024 by dbarajas
Thank you. Now it's working perfectly.

Regards
Diego
The topic has been locked.
Support Specialist
14 years 2 months ago #21034 by alzander
Diego,
Glad to hear that got you going. Should you need anything else, just let us know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect or our support on the Joomla Extension Directory. It's certainly not required, but very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks,
Alex
The topic has been locked.