× Joomla Facebook Connect support forum

Topic-icon Facebook Connect Login Not Working

Support Specialist
13 years 2 months ago #7329 by alzander
On Feb 2, Facebook updated their Javascript code that we load to enable Facebook Connect functionality. This code push, completely outside of JFBConnect, included a bug which on many sites is causing the following code to be displayed when attempting to login:
.app_content_51546247891 a.uiLinkSubtle { display: none; }
.app_content_51546247891 a.UIImageBlock_ICON_Image { display: none; }
#bootloader_Zvucx { height: 42px; }

We've been tracking the issue since, and will keep this thread updated as progress is made. Facebook has stated that they've released an updated version of their Javascript which should fix this issue. However, Facebook has many servers and the 'bad' code may still be loaded for some time. Their current recommendations are below:
1) Try to clear your browser cache and restart the browser. This will help improve the chance of loading the 'new' Javascript
2) Update your code to load the Javascript from their secure (https) server. To do so in JFBConnect requires a modification to a PHP file. The file to edit is /plugins/system/jfbcsystem.php (if you're using JFBConnect 3.1.x). At line 67, you'll see:
'//connect.facebook.net/{$locale}/all.js';
Update this to what's show below (adding the https):
'https://connect.facebook.net/{$locale}/all.js';

Please let us know your experience with either of the above fixes!
The topic has been locked.
Support Specialist
13 years 2 months ago #7330 by alzander
The official bug report, which we've posted our experience into, is below:
bugs.developers.facebook.net/show_bug.cgi?id=14971
The topic has been locked.
Active Subscriptions:

None
13 years 2 months ago #7338 by fb_650063770
Thanks for the heads up. So that's why my JFBConnect button was not working. Modifying the php file worked! :D
The topic has been locked.
Active Subscriptions:

None
13 years 2 months ago #7339 by fb_500050656
Thanks Alex

I'm on a different network and my sites are working fine now...probably a CDN issue where I was checking them from. Haven't updated the php file though...

Going forward, is that something you recommend?
The topic has been locked.
Active Subscriptions:

None
13 years 2 months ago #7340 by fb_500050656
Alex,
I went ahead and made the jfbcsystem.php change, but it causes my 'login with facebook' button graphic to disappear. I flushed local/server cache as well, no effect.

I've switched back to non-https.

Craig
The topic has been locked.
Support Specialist
13 years 2 months ago #7343 by alzander
hmmm. Definitely shouldn't have made the graphic dissappear. I'd double check, if you want to add it again.

As for whether you should, we're up in the air about it. The bug report has some users who are reporting that it causes a security notice to come up in IE because a non-secure page (the site) is loading a secure script (the secure JS file). While we haven't seen that, and it really shouldn't throw a warning for that (it usually only throws warnings for secure sites loading non-secure scripts), it's something to be aware of. Also, in a few hours.. hopefully not days.. this will be fixed by Facebook and at that point, it'd be best to revert the change... which most people will forget about and never do.

So, if it's driving you crazy, or you need to test and you can't access the site, I'd do the https trick to let you work around it. Otherwise, I'd recommend waiting it out.

On our sites, we're not making the change, if that helps.
The topic has been locked.
Support Specialist
13 years 2 months ago #7353 by alzander
According to the bug report above, Facebook pushed an updated/fixed version of the Javascript API to their Akamai (their content delivery network) at 3:10pm PST. Since then, we've seen diminished cases of the Facebook error. It's still occurring periodically, but should slowly disappear as browser caches are cleared and the update is successfully fetched.

At this time, we are recommending just waiting it out if you are experiencing the problem described above. If you've updated your PHP file as described above, it should be safe to revert it back. Please test, and report your findings.

We'll post here if more reports in the bug are filed of the issue or if there are any changes required.

Thanks for your patience.
The topic has been locked.
Active Subscriptions:

None
13 years 2 months ago #7359 by fb_729628948
I replaced the code: '//connect.facebook.net/{$locale}/all.js'; for this: 'connect.facebook.net/{$locale}/all.js'; everything is working now, before i was getting the was unable to login........... so i will leave like it is right now until you guys say something different.
The topic has been locked.
Active Subscriptions:

None
13 years 2 months ago #7362 by bobmeetin
Alex, Sorry but neither fixes made a difference in my case. All my sites are hosted at Hostgator in Dallas, not far from your neck of the woods. Here's something I experienced last night when working on the posting form which you've seen. Am wondering whether this is/was related.

If I was neither logged in through Joomla nor JFBConnect the FaceBook connect button was displaying correctly (according to the logic I had set up) but if I logged in through joomla, but not JFBConnect the spot where the blue FaceBook login button should display was blank. At the same time 'Like' and other things were working correctly.
The topic has been locked.
Active Subscriptions:

None
13 years 2 months ago #7363 by bobmeetin
And literally seconds later - am able to connect using FaceBook again. However the other problem with the display still exists. I will add the notes to the other open ticket.
The topic has been locked.