× Joomla Facebook Connect support forum

Topic-icon Login button has mysteriously changed

Active Subscriptions:

None
11 years 11 months ago #23320 by fireleague
Suddenly, after using JFBConnect for over a year I load my page this afternoon and the Facebook login button is totally different and the position of the button is wrong. Did something change? Is there a setting somewhere that I need to modify to fix this?

URL is www.fireleague.com

I was using version 4.0.3 until about 1 hour ago when I upgraded to 4.2 for Joomla 1.5

Thanks for any help you can provide.
The topic has been locked.
Support Specialist
11 years 11 months ago #23321 by alzander
Facebook looks to have push a Javascript change today that altered the behavior of the button. They push Javascript updates pretty regularly (almost daily), and sometimes that changes behavior. We've noticed the change in the button and are seeing different behavior in different browsers on different sites.

There's already a bug report filed for this, marked as "High" priority. I'd recommend using the "Does this repro describe your issue?" link by clicking "Yes" and putting in more information about your site. The more that say it's an issue, the more eyes it will get within Facebook:
developers.facebook.com/bugs/182686175193686

Hope that helps explain, and sorry for the troubles!
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 11 months ago #23323 by messinatech
How can we fix this in the meantime? Will you be releasing an update?

Thanks
The topic has been locked.
Active Subscriptions:

None
11 years 11 months ago #23324 by messinatech
I changed my button size to small and that fixed part of the problem. The real problem for our size is that new "three bar" loading thing FB implemented messes with the spacing between our header div and our main body and temporarily shows a nice black bar while logging in. Lovely ;)
The topic has been locked.
Support Specialist
11 years 11 months ago #23333 by alzander
messinatech,
Thanks for the tip! Always good to know what may help others.

All,
We were hoping this would get fixed sooner. If you're up for some quick code changes, you can setup JFBConnect to use a custom image instead of the Javascript based button that's loading now. If so, first create an image you want to use. The easiest thing to do here is simply capture an image of the existing button using any photo editing program. Once you have the image file, you'll want to create the new link in either of the following ways:

If you're using the {JFBCLogin} tag, replace that tag with the following HTML:
//echo '<a href="javascript:void(0)" onclick="jfbc.login.login_custom();"><img src="http://yoursite.com/linktoimage.jpg" /></a>';

If you're using the SCLogin module:
Edit the /modules/mod_sclogin/tmpl/login.php file. Around line 84, you'll see the text

//Show Social Login Button(s)

Follow the instructions there to disable one line of code and enable another. Update the image to be loaded as well. This will disable the Javascript loading and use a custom image.

Hope that helps get you going. You can use the custom image permanently, or, when Facebook fixes the problem, switch back to the Javascript-based button.

Good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 11 months ago #23343 by messinatech
Thanks Alex, that's definitely helpful!

Just went through the entire process of updating the facebook app to be June 6th compliant in advance, and everything has been working fine (until last night, of course).

But one problem still remains. It is no longer a one-click login. It's popping up the permissions dialogue, but saying I already have permissions. Quite a nuisance.

Anyones else seeing this behavior, and if so, will your fix above also fix this?

Attached is the dialoge every time I log in. Definitely not a good user experience. Would appreciate any insights if some is having the same problem.
File Attachment:


Thanks again,

Mark
The topic has been locked.
Support Specialist
11 years 11 months ago #23347 by alzander
Mark,
The bug you mention is a Facebook issue. This was also introduced yesterday and affected random sites for certain users, not everyone. The bug report for this issue is listed below:
developers.facebook.com/bugs/256345417806493
I'd *highly* recommend using the "Does this repro describe your problem" link and click "Yes". Give information about your site and other details requested. Then, comment in the bottom saying "This is happening to me too". The more people that do that, the higher the visibility the problem becomes for Facebook. This is an issue they will have to fix, and the louder bugs get more attention.

Sorry for the troubles, but hopefully they'll get these weird kinks worked out soon. Usually, when a Javascript update has problems (which happens about every 3 months) it takes up to 48 hours to get the 'big' problems fixed, of which everything mentioned above is big from our experience.

Thanks,
Alex
The topic has been locked.
Support Specialist
11 years 11 months ago #23348 by alzander
Mark,
Also wanted to touch base on what you meant by 'June 6th compliant'. No features of JFBConnect (ever) were part of the features being changed for the June 6th migrations. The FBML stuff is not anything we've ever supported and neither is the XMPP protocol. Just wanted to check if you thought there was something you needed to do. You may want to start a new post if you want to discuss further.

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

None
11 years 11 months ago #23349 by messinatech
That's great news. I did think I had to make some changes to avoid broken sites. Thanks!
The topic has been locked.
Active Subscriptions:

None
11 years 11 months ago #23352 by messinatech
Ok, I tried your method:

Commented out these lines...
    //Show Social Login Button(s)
  //  $jfbcLogin = $helper->getJFBConnectLoginButton();
  //  if ($jfbcLogin != "")
  //     echo $jfbcLogin;

Then uncommented the line for image link.

It still loads the FB javascripts, see attached... I triead clearing the cache..... any thoughts?

File Attachment:


Thanks again,

Mark
The topic has been locked.