× Joomla Facebook Connect support forum

Topic-icon Conflict with Easyblog component

Active Subscriptions:

None
14 years 7 months ago #14482 by marhar
This is the same issue as reported at www.sourcecoast.com/forums/jfbconnect/jf...nflict-with-easyblog

I have part-resolved it by hacking the easyblog code so that it does not load duplicate the loading of 'all.js' that jfbconnect already loads. This works fine when I try a jfbconnect login when a single easyblog article is being displayed.

However, if the current page is an easyblog blogger listing (a listing of all blog articles by a specific author), then a jfbconnect login attempt will fail. In this circumstance jfbconnect seems to be using the connection string...
https://www.facebook.com/dialog/permissions.request?api_key=ADMIN_ID&app_id=ADMIN_ID&display=popup&fbconnect=1&locale=en_US&next=http%3A%2F%2Fstatic.ak.

The admin_id is being picked up from easyblog's 'social integrations' config that it uses to manage the facebook like button facility on its pages.
The topic has been locked.
Support Specialist
14 years 7 months ago #14496 by alzander
Can you link to a page with this problem (or Private Message it to us)? Once we see the page, we can likely point out at least where the code is coming from to help you narrow down the cause or where to look.

Also, have you tried contacting the Easyblog developers to see if they know how to disable their Facebook integration? Not necessary, but they may be able to help as well.

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

None
14 years 7 months ago #14506 by marhar
PM on its way.

The easyblog people pointed me in the right direction to stop the double loading of all.js, but it seems very odd that jfbconnect appears to be picking up a parameter that has been configured into the easyblog backend. Even after removing this parameter, jfbconnect doesn't work, though in that case it does not throw up any error at all - just sits there, takes the click , but does nothing.
The topic has been locked.
Support Specialist
14 years 7 months ago #14510 by alzander
Thanks for the link.

On that page, there's still another inclusion of the Facebook Javascript Library, and initialization of the code with a different API key than the one you've specified in JFBConnect. Open up the source for that page and you'll see the following block (search for FB.Init, and it's the 2nd chunk):
window.fbAsyncInit = function() {		FB.init({appId: '575101633', status: true, cookie: true,			xfbml: true});	};	(function() {		var e = document.createElement('script'); e.async = true;		e.src = document.location.protocol +			'//connect.facebook.net/en_US/all.js';		document.getElementById('fb-root').appendChild(e);	}());
That code is using a different AppId (575..), and it's not setting the proper permission to enable OAuth2 authentication, which is required by Facebook as of October 1st. Re-initializing the Facebook library, and doing it incorrectly, is definitely where the problem is coming from.

Not sure if that's EasyBlog or something else, but either way, it will need to be removed for Facebook Connect functionality to work properly.

Hope that helps get you going!
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 7 months ago #14512 by marhar
That all seems to make sense. I've passed the info on to the people at easyblog. I'll let you know how it goes.

Cheers
The topic has been locked.
Support Specialist
14 years 7 months ago #14514 by alzander
No problem Mark. Definitely let us know how it goes, or if you can't get a solution that works for you. We'll definitely do what we can to help!

Good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 7 months ago #14524 by marhar
Yes - easyblog was still loading an FB.init script in that particular view.

If anyone else is here having the same problem, then the solution is to comment out the line...
echo EasyBlogHelper::getFBInitScript();
from components/com_easyblog/views/blogger/view.html.php

Great service from you and thanks for your help.
The topic has been locked.
Support Specialist
14 years 7 months ago #14531 by alzander
Mark,
Thanks for posting your solution. It definitely helps, as we don't test with every other extension out there.. so we're sometimes in the dark as to specific issues.

Glad you like our service and support. We definitely want to make sure everyone gets things going properly. If you have the time, please consider leaving a rating and review on the Joomla Extension Directory. It's certainly not required, but very appreciated!
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks, and good luck with your site,
Alex
The topic has been locked.