× Joomla Facebook Connect support forum

Topic-icon facebook login button does not appear on home page only

Active Subscriptions:

None
hello. there is something going on with my home page and the facebook login button. on all other pages - it works fine .... both in the drop down menu and in a module on the page ... but on the home page I simply get the text LOGIN WITH FACEBOOK and no button. please help ....
The topic has been locked.
Support Specialist
This is usually caused by a Javascript conflict of some sort on your site that's preventing the Facebook Javascript library from loading. If you're using other Facebook extensions for Joomla (especially Share buttons), please try to disable them. The Share button was deprecated by Facebook in February of this year, and can cause the conflict you mention. If that's not the cause, please post your URL and we can take a look and let you know what the offending Javascript is to hopefully help you narrow it down.

Thanks,
Alex
The topic has been locked.
Support Specialist
I just looked at your page (Thanks for the PM), and on the home page, the Share button is actually being loaded. If you view the HTML on the page, and search for "Share", you'll see a reference to the following file:
http://static.ak.fbcdn.net/connect.php/js/FB.Share
That's not being inserted by JFBConnect, and is what's causing the conflict. That line isn't being loaded on any other pages of the site (that I could find).

I don't know what extension is specifically adding it, and I can't actually see the share button on the page. The best reference I can find, in the HTML, is to "igallery". If you know what that is, please see if you can disable the Share functionality within it.

Hope that helps, but if not, let us know!
The topic has been locked.
Active Subscriptions:

None
Wow and thank you again for your prompt response. I did do some digging and yes when i disabled the share piece in the gallery lightbox, it did resolve itself. I do wish I didn't have to disable it as it is a great feature, but at least for now the button shows up :) thank you!
The topic has been locked.
Support Specialist
Unfortunately, there's not a good solution to this. The script your page was loading was from Facebook itself. However, that file hasn't been updated in over 10 months, and now causes a conflict with their (more up-to-date) Javascript authentication and social library. This library doesn't have Share functionality.

Facebook is recommending using the Like button now, which (when combined with the Open Graph tags, which JFBConnect supports) has all the functionality of the share button. I'd contact the component maker of your gallery extension and let them know about the changes to Facebook.

Glad we got you set up, and should you run into anything else, just let us know!
Alex
The topic has been locked.
Active Subscriptions:

None
i just had a few calls of people telling me that they could not login in the Login dropdown - they are getting an invalid token response.
However as an administrator I can login and if I login to the login box on the bottom of the site I can login there ....

doesn't make sense to me???
The topic has been locked.
Support Specialist
Invalid token means that communication with Facebook broke down during the authentication process. This is usually caused for 2 reasons:
1) Your app is very new, so Facebook hasn't properly registered it across all of it's Content Delivery Networks - If this is the case, it may take up to 72 hours for the issues to work themselves out (usually much faster)
2) Facebook had a hiccup. Unfortunately, this does happen, but is very infrequent and usually very quick when it does.

Those are the most common reasons. I just tried to log in, and went directly to the Login/Register page with my email filled in and other details (so communication was fine). Obviously, it could be deeper problems, but likely, it will fix itself (if it hasn't already). Keep an eye on things, and definitely let us know if you continue to hear about issues.

Sorry this isn't a great answer, but it's all I can give for right now with the details I have.
Alex
The topic has been locked.
Active Subscriptions:

None
thank you for the explanation. I may not have been clear however as the issue was with logging in as a non facebook user ... I mean simply entering a username/password and clicking login as a user not via facebook. I have tested it for myself and I can login okay, but did test with another user and did get that error. It was that person's first time logging in .....
The topic has been locked.
Support Specialist
Ahh. I thought you were saying something else about Facebook's token's, but instead, you're talking about Joomla's. In case you don't know (the short of it is), tokens are a security measure used on pages with forms. When a form is displayed, a unique code is inserted in this form and then checked when the form is submitted, like the Login form.

Since yours is a news site, it's possible that a user reads an article, and while they're doing that, their session expires. By default, in Joomla, the session expiration length is 15 minutes. You may want to increase this session length (in the Global Configuration area) to something a little larger (30-45 minutes).

It's possible this isn't the issue, but honestly, our JFBCLogin module uses the built-in Joomla login functionality completely, so if you're getting a Token error, it's likely not JFBConnect specific and would happen with the normal login module.

Hope that helps explain, and if you think it's a persistent issue (or really JFBConnect specific), just let us know and we can investigate further.

Thanks,
Alex
The topic has been locked.