Alright, we think we have a solution for the SH404 issues that we've had, but would like to have any of you affected make minor changes to 2 files to test first. If you can't, that's fine, we'll post RC4 with these fixes early this week, but would like to have some wider testing first. Also, if you notice other problems that may be related, post them here.
Cause: Joomla router is converting '&' symbols in the URL to '&' which then is getting sent to Facebook and back again, and SH404 isn't routing these back to the JFBConnect component correctly.
Solution:
In the SH404 configuration, under the "By Component" tab, switch the first column for JFBConnect from "(use default handler)" to "Skip".
Modify the following 2 files:
/components/com_jfbconnect/helpers/facebookhelper.php (~line 26, remove JRoute::_() function call):
function getFacebookUserLoginLink()
{
#return JRoute::_("index.php?option=com_jfbconnect&task=loginFacebookUser");
return "index.php?option=com_jfbconnect&task=loginFacebookUser";
}
/modules/mod_jfbclogin/tmpl/default.php (Add JRoute::_( xxx, false) to 2 function calls)
line 13
Change: var fbUserLoginLink = "<?php print JFBConnectFacebookHelper::getFacebookUserLoginLink(); ?>&return=<?php echo $fbLoginUrl; ?>";
To: var fbUserLoginLink = "<?php echo JRoute::_(JFBConnectFacebookHelper::getFacebookUserLoginLink()."&return=".$fbLoginUrl, false); ?>";
line 30
Change: window.location = 'index.php?option=com_jfbconnect&task=logout&return=<?php echo $logoutUrl; ?>';
To: window.location = '<?php echo JRoute::_('index.php?option=com_jfbconnect&task=logout&return='.$logoutUrl, false); ?>';
Thank you for your patience. Any custom modifications to the login template should not be affected (though the line numbers above may obviously be different). Please post results!