× Joomla Facebook Connect support forum

Topic-icon Trouble with Sign in with Facebook login (jfbc is not defined)

Active Subscriptions:

None
Hi,

I have installed and configured JFBConnect (com_jfbconnect_j1.5_v4.2.4 + plg_jfbcprofiles_jomsocial_j1.5_v4.2.4) on our client site but I'm having trouble getting it to work.

I have run auto-tune and all seems to be correctly configured.
We are running JomSocial and Jreviews on the site.

When I try to login on the front-end (via a {JFBCLogin} button placed in the template) it seems to log me in facebook and I can see the app in my facebook account, the login pop-up goes away after logging in but I am actually not logged in on the site. The "Login with Facebook" button changes to "Log In" and then back again to "Login with Facebook" when I refresh the page. None of the page requiring login are accesible, I'm prompted to login.

In the debug console, I'm getting the following errors:
TypeError: window.addEvent is not a function
window.addEvent("domready", function() {

ReferenceError: jfbc is not defined
jfbc.login.logout_facebook = false;

(nothing to output)
plugins.js (line 3)
ReferenceError: jfbc is not defined
FB.Event.subscribe('auth.authResponseChange', function(response) {jfbc.login.on_login();});

Could someone please help?

Thanks in advance
The topic has been locked.
Support Specialist
In your HTML, can you look to see if the jfbconnect.js file is being included somewhere? Our JFBCSystem plugin includes that on the page, and it's definitely required for proper functionality.

If you are using a Javascript compressor/minimizer, you may need to clear the cache so that it re-fetches all the files and joins them altogether again. If that's not the case, I'd suggest trying a different template, temporarily, to see if that somehow makes a difference.

There's no reason that file shouldn't be included on the page, so we'll just need to narrow down the cause.

If none of that helps, can you please post (or Private Message) me the URL of the page you're testing on?

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

None
Hi Alex,

We have now got it working. Like you said, the jfbconnect.js wasn't included in the page.

Thanks for your help.
The topic has been locked.
Support Specialist
Awesome! Glad to hear that got it going for you. Should you need anything else, just let us know!

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

Thanks, and best of luck,
Alex
The topic has been locked.