Topic-icon FB is not defined

Active Subscriptions:

None
12 years 1 month ago - 12 years 1 month ago #43573 by nextit
FB is not defined was created by nextit
Hello!

Firstly, thanks for developing such a thorough extension. I love the ability to map the user data to a specific database table.

That being said, I can't get the extension to work at all on the front-end (mind you, I'm only attempting to get facebook login to work currently). Every time I click a facebook login link, I get a notice in my console "FB is not defined". Screenshot here:
i.imgur.com/BTDdEUL.png

I've configured all of the configuration options I should need to and ran the autotuner and everything passes. I've ran the remote check- here is the screenshot of the results : i.imgur.com/Cg06PlS.png

Additionally, I found you mention language as a possible issue on this front in a different thread. I tried this, but my language is all english and default, so I do not believe this is my problem.

I would be happy to provide you with credentials and more information, but being as this is not a private ticket for support, I will not be submitting it here. Please contact me, I need assistance!

Thank you!

EDIT: I would like to mention that 100% of your demos have the exact same notice and are not functional.
Last edit: 12 years 1 month ago by nextit.
The topic has been locked.
Support Specialist
12 years 1 month ago #43578 by alzander
Replied by alzander on topic FB is not defined
I just loaded your site (kwik....com). On the page, the Facebook Javascript file is being loaded properly. If you open the source HTML, you'll see the following line:
js.src = "//connect.facebook.net/en_GB/all/debug.js";
That line tells me that you have JFBConnect with "Enable Debug Mode" set to yes, which is perfectly normal. When debugging is off, the Javascript file would be en_GB/all.js.

On your site, I was also able to click the Facebook button and the login popup appeared, as expected. That was with Chrome on a Mac.

The behavior your seeing, especially if it's on our demo or other sites, indicates that you likely have a browser add-on/extension that's preventing some social network features from loading. There are many add-ons (or even firewall, malware and security products) that could do this. You'd have to check through your add-ons to see if any may be conflicting. The other options would be to test from another browser on the same computer or try from a different computer altogether.

I hope that helps get you started. Again, everything looks right from my end, so we'll need to narrow down where things are going south on yours. We'll gladly help however we can.

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

None
12 years 2 weeks ago #44189 by nextit
Replied by nextit on topic FB is not defined
Hello Alzander,

Thank you so much! I can't believe I left that on and totally forgot about it. I had an extension blocking facebook javascript files.

I have another problem currently that I believe is related to this extension. In chrome and in IE (not in firefox) I get an error on this page: kwikfill.next-www.com/store-locator

The error is : "Uncaught SyntaxError: Unexpected token = "

This error may be because of my custom javascript on the page. I understand this and I will debug this issue if you can confirm it is not any javascript in your extension. When I click on the line number for the Uncaught SyntaxError, chrome presents me with a white blank screen (instead of the code with the error). If i scroll up and down on this page that has the error, I only see code related to facebook and JFBConnect- no code that is related to my store locator.

Any assistance you could provide would be greatly appreciated. Again, thank you for the great support before and the great extension! I love this extension.
The topic has been locked.
Support Specialist
12 years 2 weeks ago #44195 by alzander
Replied by alzander on topic FB is not defined

Thank you so much! I can't believe I left that on and totally forgot about it. I had an extension blocking facebook javascript files.

Hehe.. no problem. Happens all the time. We get blamed for a lot :)

As for your issue, the Javascript error definitely isn't from JFBConnect. It's from this line:
function rebuildMap(firstLoad = false)
Javascript doesn't allow the passing of default values for variables in the function call and that will need to be fixed.

To find that, you need to open the HTML of your page using the View Source feature of the browser. When you look at the HTML in the console at the bottom, that displays the code *after* it's been parsed and Javascript has re-arranged things. The error reports the original location of the error though, which is why you need to view the raw HTML.

Hope that all helps, but if you have any other questions, just let me know.

Any assistance you could provide would be greatly appreciated. Again, thank you for the great support before and the great extension! I love this extension.

Thanks so much for the kind words. We obviously put a lot of work into making JFBConnect scream, and are super excited about some of the stuff coming in the 6.1 release. It's always great to hear feedback from our users on the good, and the bad :)

On a final note, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks,
Alex
The topic has been locked.