× Joomla Facebook Connect support forum

Topic-icon Pop-up doesn't close and redirect

Active Subscriptions:

None
15 years 1 month ago #165 by Clark
Hi, I've almost got this component and module working perfectly but I have one niggling issue which I hope you can help me resolve. On my site blah the facebook connect link opens fine, you log in, and the popup appears blank (has the connecter source code in it) and doesn't close or redirect the visitor to the specified page. What am I missing?

If you close the pop up and refresh the page and click the connect button again it logs you into your facebook account, but that's going to be a little hard to explain to visitors.

I appreciate any help of how I can fix this issue. Thank you for your help.
The topic has been locked.
Support Specialist
15 years 1 month ago #167 by alzander
My first, and only guess for now, would be to check your callback url. It's obviously signing you into Facebook, but I noticed you have an automatic redirect set up to add "www." before your URL, but still posted it here without that. Facebook is really picky, so make sure your callback is (in your case) "www.mightyfightinghawks.com"

If your callback is setup correctly, can you provide the following information about your setup? You can find this in the administrator area under Help->System Information:
Joomla version
PHP version

Good looking page by the way. I like the design, and it's always nice seeing JFBConnect in use.
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #176 by Clark
Thank you for the follow up sourcecoast. The callback URL which is set in my facebook application is <!-- m --><a class="postlink" href="www.mightyfightinghawks.com">www.mightyfightinghawks.com

My details in the Help section show:

Database Version: 4.1.22-standard
Database Collation: utf8_general_ci
PHP Version: 5.2.5
Joomla! Version: Joomla! 1.5.9 Production/Stable [ Vatani ] 9-January-2009 23:00 GMT

I hope this helps you.

Thanks for the kind words about the site. I can't wait to integrate RC3 into Jomsocial and see how that goes. You're doing a great job so far.

Cheers.
The topic has been locked.
Support Specialist
15 years 1 month ago #190 by alzander
Clark,
Sorry to keep asking more questions, but what SEF utility are you using on the site? The login URL being generated is strange, and could be the cause of the problem. If you don't mind changing a line of code, I have a suggestion below. I don't think this will fix the issue, but might get us farther along, and help to narrow down the problem.

In the components/com_jfbconnect/helpers/facebookhelper.php file, line 27:
function getFacebookUserLoginLink()
{
return JRoute::_("index.php?option=com_jfbconnect&task=loginFacebookUser");
}

Change the return line to:
return "index.php?option=com_jfbconnect&task=loginFacebookUser";

Depending on the SEF component, this may not change a thing (just ignoring JRoute), but it's an attempt. Once I know what you're using, I'll try to install it and start trying to figure out the issue. If there's a way inside the SEF component to ignore any URLs from JFBConnect, that'd be swell to too :)
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #196 by Clark
Hi Sourcecoast, no problems with the questions, ask as many as you like.

I am using sh404SEF 1.0.16_Beta - build_222 but I noticed that it was set to nocache and not skip for JFB connect so I have just changed that and cleared my cache. It will rebuild the URL's over the next 15 minutes or so.

I modified the code in the helper, so lets see if that helps. I'll try again soon and post up my results!

Thanks again for the help.

Cheers
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #197 by Clark
I've just tried it again, the pop-up window now closes after authentication but unfortunately I am now getting a redirect loop error post log-in. Is this something I have perhaps misconfigured in my settings?

Should I change the helper file back to normal?
The topic has been locked.
Support Specialist
15 years 1 month ago #200 by alzander
Yeah, I'd change it back. A white screen is better than an infinite redirect.

Again, didn't think this would fix it, but it did exactly what I was hoping for... narrowed down your cause to a routing/SEF problem. We'll work on figuring out how to make sh404SEF play friendly with JFBConnect.

Thanks again for your feedback and prompt responses. It sucks that you're running into these issues, but we'll get to the bottom of it.
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #204 by Clark
Thanks Sourcecoast. I've just changed it back and I get a 500 error while trying to reach:

<!-- m --><a class="postlink" href="www.mightyfightinghawks.com">www.mightyfightinghawks.com /index.php?option=com_jfbconnect&task=loginFacebookUser &return= aW5kZXgucGhwP29wdGlvbj1jb21fY29tbXVuaXR5JnZpZXc9ZnJvbnRwYWdl.

**The spaces in the URL are added here to stop it auto shortening in thepost **

I know this is going to be part of the same problem with the SEF, I just wanted to make you aware of it in case I decide to revert back to my old login module. This is with setting the JFB component to Skip in sh404SEF.

Thanks again for your help.
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #206 by dan_jericho
I am also having this same issue. Is there any update on a resolution?

Thanks in advance.
The topic has been locked.
Support Specialist
15 years 1 month ago #211 by alzander
We are actively looking into this.

I'm assuming you're using SH404 as well? Just trying to get as much info as possible so we know if other components may also be causing the issue.
The topic has been locked.