Topic-icon Cant get facebook login to work

Active Subscriptions:

None
10 years 9 months ago #34850 by gersze
Hiya,
Seems everything is fine but cant get Facebook login to work.
Best score is on login form where I can see Login with Facebook for 1 sec (see attached pic)

Any idea?
The topic has been locked.
Support Specialist
10 years 9 months ago #34857 by alzander
Hmmm.. We had another report of something similar (with a different social widget) about a month ago, but never got to the bottom of the problem. Basically, the Login with Facebook button is created through Javascript using Facebook's code. That code is throwing the following error:

fb:login_button failed to resize in 45s

It's not a terribly helpful message.

There is one very easy solution that will fix the login button though... in the SCLogin module, switch the Button Type from "Javascript" to "Icon", "Icon with Text" or "Custom Image". For the last one, you'll have to supply your own image for the button. Doing that bypasses the Javascript button altogether and will work.

However, you may run into similar issues with other social features, for example, the Like button or Comment box. If you do (or you want to use the Javascript Login with Facebook blue button) you can try the following modification. Edit the /components/com_jfbconnect/assets/jfbcchannel.php file. In there, you'll see a line like:
<script src="//connect.facebook.net/en_US/all.js"></script>
Change that to:
[code]<script src="//connect.facebook.net/hu_HU/all.js"></script>
That last change to always set the language properly will be in the next release, v5.1. If you do test it now and see an improvement, or not, we'd love to hear your feedback about it.

Thanks, and keep us posted on how that goes,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 9 months ago #34873 by gersze
Hi Alex,
I've tried Icon with Text and Custom Image option too. No change. Got the same, Login with Facebook for 1 sec.
Changed the code hungarian but it's still in english.
I am affraid the problem is not here. Yesterday tested settings by AutoTune and everything was fine, today it says: "Facebook Application information not found."
I have no idea, everything is green or checked except on Facebook App tab if I click to update application it says: "Facebook API Error: (#100) Empty parameters cannot be used for migrations"
Not sure what empty parameters, I left blanked only "Value should be blank " boxes.
Alex, Could you check my settings if I send my login details in PM please?
The topic has been locked.
Active Subscriptions:

None
10 years 9 months ago #34876 by gersze
Hiya,
Same on my another site. The different is I have J2.5 there. Use gavick template too. Seems not working with gavick templates, so I cant use JFBConnect :(
The topic has been locked.
Support Specialist
10 years 9 months ago #34878 by alzander
There's 2 different issues I now see on both of those sites. I don't know if they're the cause, but it's where I would investigate first.

On the Joomla 3.1.4 site, there is the following Javascript error on that page:
Uncaught TypeError: Object [object Object] has no method 'tooltip' at line 149
The code at that line is:
<script type="text/javascript">
    (function() {
      var strings = {"JLIB_FORM_FIELD_INVALID":"\u00c9rv\u00e9nytelen mez\u0151:&#160"};
      if (typeof Joomla == 'undefined') {
        Joomla = {};
        Joomla.JText = strings;
      }
      else {
        Joomla.JText.load(strings);
      }
    })();
  </script>
I'm not sure what that is doing, but the Javascript is throwing an error which can prevent further Javascript from functioning.

On the 2.5.13 site, you look to have Gavick's Facebook integration also enabled. You'll need to go into the template settings and disable their Facebook integration to prevent the double inclusion of the Facebook Javascript library.

The above are both the next suggestion as they are both definitely problems. Fixing those may unearth something else, but I don't see any other issues with either site after taking a pretty thorough look at the HTML.

If you'd like to Private message me admin credentials to either site, I'll gladly look at the configuration further. On the 2.5.13 site, I could help disable the Gavick FB integration. On the 3.1.4 site, I don't know where that bad Javascript is coming from, so I can't really help you fix that.

In general, JFBConnect is used on many, many sites with Gavick templates. They can cause issues, but we know that the 2 can play together just fine.

I hope that helps,
Alex
The topic has been locked.
Support Specialist
10 years 9 months ago #34879 by alzander
One other thing I just caught.. On the 3.1.4 site, the scope being requested from Facebook is:
'email,user_birthday,user_location,user_website,gender,';
That extra ',' at the end is bad and would also cause problems. Did you enter "gender" into the Additional Requested Permissions box in JFBConnect, and if so, do you have an extra ',' at the end? If so, that needs to be removed. Otherwise, it could be a problem with our code that we'll gladly investigate further.

Thanks,
Alex
The topic has been locked.