Topic-icon Facebook login doesn't work anymore

Support Specialist
9 years 1 month ago #52097 by alzander
Walter,
Although the symptom may be the same, your issue is actually quite different. In general, it's usually best to start a new thread for issues you run into.

Just to check, the topic here was "Facebook login doesn't work anymore". Did your Facebook authentication ever work? If so, can you give any more information about what you changed since it was working?

Looking at your site, a Javascript error is coming from the Facebook library when the login button is clicked. That's caused by a Javascript conflict with something else loaded on your page. If I switch to the Protostar template, the issue goes away, so it's definitely something specific to the page.

Fortunately, I just tested what would happen if the "Show 'Logging In' message" setting in the JFBConnect -> Configuration -> Facebook section is "Off" and that makes the authentication work. So, it seems there's something with the Javascript for that specific popup and your site. I'd recommend disabling the "You are logging in popup" and see if you're ok with that solution.

I hope that helps, but if you need anything else, just let us know.

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

None
9 years 1 month ago #52110 by wizzard33
Can you tell me how you figured out it was a java script causing the issue. I never changed anything since I installed the software. I tried running the auto tune again and got the unknown error 406 . And it stopped working. I did the 2 Joomla updates and the the JFBconnect.

If you could tell me or show me how to look I can find that error in the facebook library and fix it or so I hope.

Also how did you change my theme to prostar without logging in? Just curious so I can learn from this.
The topic has been locked.
Support Specialist
9 years 1 month ago #52125 by alzander
Sure thing. We believe in the teach a person to fish philosophy :)

For the Javascript error, we used Chrome's Developer Tools. Each browser (nowadays) has a developer tools area where you can get a lot more information about what's going on under the hood of a page. In the tools, we went to the "Consoler". Then, when we clicked the Facebook login button, something like below would appear:

undefined: function not found sdk.js

sdk.js is Facebook's javascript. The function that couldn't be found was our login modal popup. The reason it couldn't be found is still a mystery, but it's likely from some other Javascript on the page causing our code (or Facebook's) to not properly call our popup.

You can't change the Facebook Javascript. Our code also isn't the issue. We'd need to narrow down what other Javascript on the page is causing the conflict and work from there. To do that, you'd want to disable extensions or plugins until things work. Then, work back to see what that extension or plugin was adding to the page that prevented the popup from working.

For the template, in Joomla, you can append ?template=protostar to any URL and force a different template to show. Generally, it's recommended to turn that ability off in the Template Manager options of Joomla, but it's on by default, and we take advantage of it for debugging purposes when we can :) In this case, switching the template fixed the problem because either:
a) Your template is including the other JS which is conflicting
b) There's a module that's only showing up in a position on the current template and not on the Protostar template.. because it's not showing, the JS isn't included, and things work.

I hope that helps, but if you have any other questions, just let us know!

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

None
9 years 1 month ago #52131 by wizzard33
Thanks for the help so far. I uninstalled almost everything and now I get a redirect loop that wont even allow basic log in or sign up. I guess that needs solved before I even get to the javascript issue or could it be the same?

If you message me Ill glady make an account for you to see the loop. It calls some js.dmtry.com code and I'm clueless where that even came from.
The topic has been locked.
Support Specialist
9 years 1 month ago #52136 by alzander
The modal looks to be turned on again. Using the debug console, mentioned above, I can force that off. When I do, I was able to authenticate with Facebook without any issues (no looping).

Are you still having this issue? If so, can you clear your browser cookies and try again? It's possible disabling some other addon left some garbage on the browser.. but that's just a guess.

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

None
9 years 1 month ago #52140 by wizzard33
Thanks, I had to turn on the two settings for bootstrap and for the css and it seems to load fine now. There still is a delay in getting a return when logging out but functioning. Thanks for all your help!
The topic has been locked.
Support Specialist
9 years 1 month ago #52143 by mel
Glad you got it working again. Let us know if you run into any other issues.

-Melissa
The topic has been locked.