Topic-icon New install: login problems

Active Subscriptions:

None
14 years 5 months ago #17316 by JWolkove
I am using both Facebook and JLinked components. I am using SCLogin
JLinked works fine so far. I can login and register. But the logout button doesn't do anything. (Problem #1)

When I click the login with Facebook button nothing happens. (Problem #2)
Once, when I clicked it, it displayed a Facebook auth page, which I accepted, but then nothing happened, I wasn't logged in or redirected.

Site URL is cloudresourcegroup.com
Facebook canvas URL is apps.facebook.com/cloudsourcing

The page jumps out of the iFrame when I access it through Facebook. Any ideas why this is happening? (Problem #3)
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #17319 by JWolkove
Update: I "fixed" the problem of the site jumping out of the iFrame by disabling the Google Translate module. However another user's solution - changing to "Google default" did not work for me; it was already set that way. I tried the other "on the fly" option, but it didn't work at all. I re-enabled it for troubleshooting purposes.
The topic has been locked.
Support Specialist
14 years 5 months ago #17323 by alzander
Lets see how we can get you fixed up :)

1) This is probably related to #2. If fixing #2 doesn't fix this, let us know.
2) The reason the Login button isn't working is because you have other extensions on your site that are loading the Facebook Javascript library. If you open the HTML of your home page, and search for "all.js", that should come up only once. The other extensions are re-including it and initializing it improperly to allow Facebook logins. Once disabled, that should work just fine.
3) Yes, you're site can't use other iFrames if you want to use the Page Tab or Canvas integration. JFBConnect switches your template based on knowing your in Facebook (which they tell us when the user hits your page from within Facebook). To 'unswitch' the template though, we detect when the user is no longer in an iFrame. If you have extra iFrames on your page, that confuses our detection.
You'll need to configure the Google Translate module to not use an iFrame for the integration to work. I don't know the module your using, or how to change those settings, so you'd need to contact that developer if something isn't working in it as expected.

Hope that all helps explain!
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #17331 by JWolkove
Thanks Alex.

I disabled the Facebook integration on EasyBlog. It still didn't work but then found that my template's compression script was giving me warnings about not being able to find one of the js files. I disabled the compression and that fixed it.

How can I use both JFBConnect and EasyBlog's built-in integration?

I'm still trying to figure out #3. I can't see where the code is creating an iframe. I can do it by setting up a second template and making a layout for Facebook. However when I tried setting up my template with an additional "style" I found that JFBConnect does not recognize the style, only the template. Is there a way to have JFBConnect use the template style instead of the template?
The topic has been locked.
Support Specialist
14 years 5 months ago #17345 by alzander
The integration is disabled on your site now, so I can't see exactly what EasyBlog was inserting. The post below from another user has a code change to EasyBlog (from their developers) that disables just the inclusion of the Facebook Library, while leaving their Like buttons and other integration:
www.sourcecoast.com/forums/jfbconnect/jf...component?p=1#p14524

We haven't tested it it, but hopefully, that works for you.

For the template to use on Facebook, unfortunately, JFBConnect doesn't have a way to set the style for a template right now. Only the template itself with the default styles. Originally, we wanted to have the option for a style as well, but there was a bug in Joomla 1.6.x that prevented us from doing so. That bug is actually fixed in 1.7.x (we just checked), and I'm going to look into how to do this now. I'll try to get you a code snippet that you can insert into JFBConnect to properly get a specific template style and use that for the Canvas view.

We have JFBConnect 4.1 coming out tomorrow, so we're focused on that. I should hopefully be able to get you a solution by this weekend though. Hope that's soon enough.

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

None
14 years 5 months ago #17370 by JWolkove
Thanks Alex. Your support is as great as your product :)

I checked out the post about Easyblog and applied the suggested patch. There were still multiple instances of all.js I found more code in /components/com_easyblog/classes/facebook.php and patched it as follows. It works fine now.

//		$html		= '<div id="fb-root"></div><script src="https://connect.facebook.net/' . $locale . '/all.js#xfbml=1"></script><fb:like href="' . $url . '" send="' . $send . '" layout="' . $layout . '" action="' . $verb . '" '
//					. 'locale="' . $locale . '" colorscheme="' . $theme . '" show_faces="' . $faces . '" style="height: ' . $height . 'px;width:' . $width . 'px;" height="' . $height . '" width="' . $width . '"></fb:like>';
		$html		= '<div id="fb-root"></div><fb:like href="' . $url . '" send="' . $send . '" layout="' . $layout . '" action="' . $verb . '" '
					. 'locale="' . $locale . '" colorscheme="' . $theme . '" show_faces="' . $faces . '" style="height: ' . $height . 'px;width:' . $width . 'px;" height="' . $height . '" width="' . $width . '"></fb:like>';

On the style issue, I'm not really sure this will solve my problem. I think I really need to hack the template or a copy of it where I can disable the module.
By any chance, does JFBConnect expose any property variables that I can test to disable loading the module if it's in Facebook? Would they be in scope where the template is figuring out what modules to load?
The topic has been locked.
Support Specialist
14 years 5 months ago #17372 by alzander
Glad to hear the EasyBlog stuff is fixed. Now on to fixing the other problems :)

First, we'll have a post with instructions for using a template style (instead of just a template) available tomorrow. It won't fix your issue directly, but will help somewhat.

If you're comfortable editing your template to show/hide specific module positions, or are using something like Advanced Module Manager that allows a PHP snippet to evaluate whether to show a module, you can use the code below to detect when you are in a canvas:
$jSession =& JFactory::getSession();
$inCanvas = $jSession->get('jfbcCanvasEnabled', false);
The $inCanvas will be a simple true/false for whether or not you're in the Facebook Canvas view. That should set you on your way for doing whatever you want based on that.

Certainly hope this gets you going. We've had a few users bring up the issues with the Google Translate module. Not sure what's causing the problems exactly, but if we can work around it in a future release, we definitely will. We love providing great support.. we love providing no support even more :D

Hope that helps,
Alex
The topic has been locked.
Support Specialist
14 years 5 months ago #17426 by alzander
JWolkove,
Just wanted to let you know that we have a code-snippet we can provide if you want to specify a template style instead of just a template. This will likely go into the 4.1.1 release with any other bug fixes that are found from the 4.1.0 release that was just posted. If you want to know how to do it ahead of time, just let us know. Hopefully, the inCanvas check provided above will do what you're looking for though.

Good luck, and let us know if there's anything else we can do.

Thanks,
Alex
The topic has been locked.