Topic-icon Problem with JFBconnect with Gavick template?

Active Subscriptions:

None
10 years 5 months ago #55946 by maxyboy
Hello SourceCoast team!

Ok, I sent an email and went through the Facebook app and also ran through the Autotune with flying colors. Still no successful FB login.
Twitter login seems to be ok, but still asks for a login after (is this normal?)

I'm running Joomla 3.4.5
JFBConnect Version: 6.5.1

I'm running Gavick Pro GAME (which has a social login field for the template). I've tried to turn this off and turn it on. The Facebook login doesn't seem to work, and when I log in with the Joomla Reg, I get the following error:

1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DESC LIMIT 0,6' at line 21 SQL=SELECT content.id AS id FROM monegran_k2_items AS content WHERE content.published = 1 AND content.trash = 0 AND content.access IN (1,1,2,3) AND ( content.publish_up = '0000-00-00 00:00:00' OR content.publish_up <= '2015-12-11 16:01:51' ) AND ( content.publish_down = '0000-00-00 00:00:00' OR content.publish_down >= '2015-12-11 16:01:51' ) AND ( content.catid = 28 ) ORDER BY content. DESC LIMIT 0,6;
It appears the page you were looking for doesn't exist. Sorry about that.


My ultimate goal with JBFconnect is to allow folks to login in through Facebook and then be able to jump to Kunena w/out having to log in again.
(I installed, but didn't start anything with Kunena yet)

Thanks in advance Melissa and Alex!
The topic has been locked.
Support Specialist
10 years 5 months ago #55952 by alzander

Twitter login seems to be ok, but still asks for a login after (is this normal?)

Twitter doesn't allow websites to grab the email address of a user, so they will need to go through a mini-registration process to at least ask their email address. Other information, like name, password, avatar and cover photo can be imported automatically.

and when I log in with the Joomla Reg, I get the following error:

JFBConnect doesn't change the standard Joomla registration process whatsoever. I'm not sure where that error is coming from, but the query looks like it is trying to pull an article from K2. JFBConnect isn't making that query and, since it's not during a social login, I don't think there's much we could help you with here.

I'm running Gavick Pro GAME (which has a social login field for the template). I've tried to turn this off and turn it on. The Facebook login doesn't seem to work,

The issue here looks to be that a really, really old version of the Facebook Javascript library is being included on the page. My guess is that that is coming from the Gavick Facebook integration. If you run the Autotune - Error Checker, the following error is being thrown:

Test: Facebook Javascript library inclusion
Fail: Another Facebook extension is installed, including the Facebook Javascript library, and may conflict.

You'll need to get the other Facebook javascript library removed from the output for Facebook authentication to work. For reference, the specific block looks like:
jQuery(window).load(function() {
    	(function(){
    		if(!document.getElementById('fb-root')) {
    			var root = document.createElement('div');
    			root.id = 'fb-root';
    			document.getElementById('gkfb-root').appendChild(root);
    			var e = document.createElement('script');
    			e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
    			e.async = true;
    			document.getElementById('fb-root').appendChild(e);
    		}  
    	})();
    });

I hope that helps get you going,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 5 months ago #55955 by maxyboy
Thanks for the breakdown Alex!
I will try :)
The topic has been locked.
Support Specialist
10 years 5 months ago #55962 by alzander
No problem. Let us know how it goes!

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

None
10 years 5 months ago #55998 by maxyboy
Thanks Alex.
I've tried...and can't seem to figure it out.
I've used JFBConnect in the past on an older version of the site and was able to make it work.
This time around, I can't seem to get it. :rolleyes: :(

I've turned off all other Facebook social sharing plugins (to the best of my knowledge), and can't seem to find anything in K2 that is throwing the error code.

Also, on my Joomla admin, the Autotune is giving the all green.
Is there another way to autotune/check what might be wrong?

Should I try a reinstall? I'm open.
Thanks in advance for your help.
The topic has been locked.
Active Subscriptions:

None
10 years 5 months ago #56009 by maxyboy
So, I have a glimmer of hope?
m1-grandprix.com/race/classifications

This page shows social like buttons which are sourcecoast. Which means the Facebook app is set up correctly, right?

I still get an error for the login though. It goes to the original error I posted.
Any thoughts? Can I get you the credentials to take a look?
Thanks.
The topic has been locked.
Support Specialist
10 years 5 months ago #56012 by alzander
Everything from JFBConnect looks to be setup correctly on the front-end and that's confirmed with Autotune.

As you noted, the SQL error above happens during Joomla registrations (as well as social network authentications). In that case, it means there's an issue with the overall registration process. You could test that by simply disabling the JFBConnect authentication, system and user plugins and trying to register through Joomla again. If it still fails, it excludes JFBConnect from being the cause of the problem. I don't know what that SQL query is trying to do or what's causing it, but you'll need to determine it somehow. I'd suggest disabling anything K2 related to see if it finally goes away.

I couldn't find anywhere to use social authentication on your site, so I couldn't test directly.

If there's anything you think is specifically caused by JFBConnect, if social buttons are configured for other pages but aren't showing, or if there's any other details you can provide on how to test, just let me know and I'll gladly investigate further.

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

None
10 years 5 months ago - 10 years 5 months ago #56024 by maxyboy
Hi Alex,
I'm not giving up. :)

I tried deactivating Authentication - JFBConnect Social Integration and It seems to stop the error code.
But, that's all I was able to make progress with. I've been scouring the web on Gavick, JFBconnect and K2.

Does the fact that Authentication - JFBConnect Social Integration is related help narrow things down? :)

Edit: Obviously I'm no coder, but from what I've gathered, there seems to be old javascript or social programing in K2, yet I was under the impression that JFBConnect was compatible with K2. Is it not really (or anymore)?
Last edit: 10 years 5 months ago by maxyboy.
The topic has been locked.
Support Specialist
10 years 5 months ago - 10 years 5 months ago #56056 by mel

Edit: Obviously I'm no coder, but from what I've gathered, there seems to be old javascript or social programing in K2, yet I was under the impression that JFBConnect was compatible with K2. Is it not really (or anymore)?

K2 still uses the older deprecated (for the past 3ish years!) Facebook Javascript all.js file. JFBConnect uses the recommended sdk.js library. Having both on your page makes unpredictable behavior and breaks functionality such as social widgets or login. We always recommend removing the all.js inclusion as there is no support for Facebook for that library.

If you run Autotune in JFBConnect, you should see an error that the other library is included. You can read our Common Support Questions for "What do these Autotune Error Check errors mean?" for more information on the older library.

In short, you can use K2 with JFBConnect, but you should remove the all.js inclusion by disabling their social buttons.

-Melissa
Last edit: 10 years 5 months ago by mel.
The topic has been locked.
Active Subscriptions:

None
10 years 5 months ago #56058 by maxyboy

mel wrote: K2 still uses the older deprecated (for the past 3ish years!) Facebook Javascript all.js file. JFBConnect uses the recommended sdk.js library. Having both on your page makes unpredictable behavior and breaks functionality such as social widgets or login. We always recommend removing the all.js inclusion as there is no support for Facebook for that library.


Thanks Melissa!
I'll try to remove the K2 Javascript.
The topic has been locked.