× Joomla Facebook Connect support forum

Topic-icon Facebook Like button makes Facebook Login button stop working

Active Subscriptions:

None
Hi there,

I have some trouble and would need some help, please.

I integrated a Facebook Like button (from developers.facebook.com/docs/reference/plugins/like/) on a page where we display the Facebook Login button. Afte doing that the Facebook Login button stopped working.

I tested three scenarios:
- Integrating the like button directly from developers.facebook.com/docs/reference/plugins/like/ -> this results in an unknown app trying to use login because a different app id is generated by Facebook.
- I re-used the same app id as in the Facebook meta tags -> this results in a constant redirect to the same page when clicking the Facebook login button.
- I left out the app id from the Facebook like button completey -> when clicking the Facbeook Login button, nothing happens at all.

None of the above works. :(

Do you have any advice on this?

Thank you so much!
The topic has been locked.
Support Specialist
Guero,
The reason our Login button hides when you do that is because you're re-including the Facebook Javascript Library that JFBConnect is also including. If you don't want to use the Like buttons functionality included with JFBConnect, you can do that, but don't add the script tag which includes the all.js file.

As for the App ID, this must be the same as the one used in JFBConnect (and really shouldn't be included at all). Facebook can't use 2 application IDs on the same page as they get confused and it simply will break things.

Our advice would be to use our module or the {JFBCLike ..} tag instead of implementing it yourself. If there's a reason you don't want too, let us know. We'd like to know why, and may have better suggestions on how to do what you want once we know the specifics of why.

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

None
Hi Alex,

thanks once again so much for your fast help!
Stripping out that one JavaScript coming with Facebook's Like button did solve the problem within seconds. :)

There was no particular reason to use the Facebook Like button over your integrated solution but that I just didn't think about it before integrating. My bad.

Thanks again,
Guero
The topic has been locked.
Support Specialist
Guero,
Glad to hear we got you going, and no problem for the fast help. It's what we do. And no worries about using other modules. We'll always try to help make everything work however you want, but always have to ask why, just in case we're missing some great feature of other extensions.

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

Thanks, and good luck,
Alex
The topic has been locked.