Topic-icon ReferenceError: Can't find variable: FB

Active Subscriptions:

None
9 years 1 month ago #61434 by removed
Hi,
I just installed JFBconnect last version, tests with autotune are ok.
But in front, when I click the Facebook button to register, I have this error in the error console.
Thank you for your help !
ReferenceError: Can't find variable: FB line 42 :

FB.login(function (response)
The topic has been locked.
Support Specialist
9 years 1 month ago #61436 by mel
Before clicking the FB login button, there's already an error on your page that jQuery is not defined. In the JFBConnect backend > Configuration > General section, please enable the "Load jQuery" setting. Then reload your page to check that the jQuery error is gone and then try to log in again via Facebook.

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 1 month ago #61443 by removed
Thanks for your answer but the option is already activated, see capture attached
File Attachment:
The topic has been locked.
Support Specialist
9 years 1 month ago #61444 by mel
I didn't realize the first time that this was EasySocial. You'll have to look in their settings for how to resolve the jquery error.

Regardless, I just clicked the FB login button and it created an account correctly for me. After I activated the account, I was able to log in via the FB credentials properly. I logged out and logged back in properly. I am not seeing the FB error on the console that you are seeing. Can you give me the exact steps to reproduce? Are you still having the error?
The topic has been locked.
Active Subscriptions:

None
9 years 1 month ago #61445 by removed
When I click on facebook button, nothing happens, I'm on Mac> Safari. Under firefox it works, I just have the warning that appears in attachment.
File Attachment:
The topic has been locked.
Support Specialist
9 years 1 month ago #61446 by mel

When I click on facebook button, nothing happens, I'm on Mac> Safari.

I just tried on Safari on my mac and it worked properly to log in. Can you try clearing cache, cookies, etc?

Under firefox it works, I just have the warning that appears in attachment.

That is expected behavior from Facebook. Users need to accept the permissions/application before they can log in with their FB credentials.
The topic has been locked.
Active Subscriptions:

None
9 years 1 month ago #61447 by removed
Thank you!
For the problem on safari, I have another amazing error on the home page:
QuotaExceededError: DOM Exception 22: QuotaExceededError: DOM Exception 22:
File Attachment:
The topic has been locked.
Support Specialist
9 years 1 month ago #61452 by mel
We haven't had any other users report this in conjunction with JFBConnect. Are you using a private window to browse? (A quick google search indicates this may be part of the problem)
The topic has been locked.
Active Subscriptions:

None
9 years 1 month ago #61457 by removed
I do not have this problem anymore this problem is back (on Safari only):
[Error] ReferenceError: Can not find variable: FB
Facebook (jfbconnect.js: 42)
The topic has been locked.
Support Specialist
9 years 1 month ago #61464 by alzander
We can't recreate the cannot find variable issue at all on Safari. We've tried on multiple computers.

Is there anything you're doing that's changing the behavior of the page? Since it went away and came back, that's very strange and hard to diagnose. Generally though, when the error happens that you mention, it means that some code isn't being inserted into the page properly *OR* some other extension is trying to setup the Facebook libraries as well. If you have another social network integration extension for sharing, authentication or whatever, try disabling it temporarily to see if that makes the problem go away.

Thanks,
Alex
The topic has been locked.