× Joomla Facebook Connect support forum

Topic-icon JFBCONNECT 4.0 FB Login Redirect Issue on Subdomain

Active Subscriptions:

None
14 years 8 months ago #13348 by Ivan
Hi,

I installed jfbconnect 4.0 on a subdomain on my site. At the moment when i login via FB it doesnt seem to want to refresh and login until after id click on another page it would autologin.

For Joomla users since im working on a subdomain Ive had to hard code the subdomain in mod_jfbclogin/helper.php on this line:
  if (!$url)
        {
            $uri = & JURI::getInstance();
            $url = $uri->toString(array('path', 'query'));
            
         
            //CODE EDIT TO LOGIN Joomla users to subdomain.
            
            $url = "http://subdomain.mysite.com/".$url;
        }

Only after this code edit ive been able to login as a joomla user. My question is where does the code make the app-> redirect call. I believe i need to adjust this for the FB users also?
The topic has been locked.
Active Subscriptions:

None
14 years 8 months ago #13382 by Ivan
Alzander I have PM you the link where im having issues.
The topic has been locked.
Support Specialist
14 years 8 months ago #13403 by alzander
The auto-login issue is something that may be a problem introduced by Facebook with a recent change they made to how they save the cookie. We're looking into a solution, but for now, the auto-login on most sites will only happen after the 2nd page navigated too. If logged in, on the first page, Facebook will store the cookie. On the 2nd page, JFBConnect will detect this and log them in.

For the redirects that take place after a user logs in, you can find these in the /components/com_jfbconnect/controllers/loginregister.php file. There's a "login()" function which all methods of logging in user (manual, auto, registration). At the bottom of this function, you can see all the different types of logging in that we handle, depending on where they are coming from and your configuration settings. Hopefully, you can get your code in there, but if you need help, just let us know.

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

None
14 years 8 months ago #13414 by Ivan
I disabled autlogin however im still not getting logged into the site until the click the login button a second time. or navigate to another page? sometimes non at all. Do you know where the cookie function is?
The topic has been locked.
Active Subscriptions:

None
14 years 8 months ago #13445 by Ivan
IE 9 Script Debugger gives me

SCRIPT 70 Permission Denied
all.js, line 22 character 4250

when i first click the connect button and then it doesnt do anything, which seems to be an issue with the new oauth method
The topic has been locked.
Support Specialist
14 years 8 months ago #13501 by alzander
Ivan,
I just went to the page you sent via PM. I'm unable to find the Login With Facebook button anywhere on that site. Can you let me know where I should be looking? If you disabled it while you worked on something else, I understand. We were out most of yesterday at Joomla Day Austin, but should be able to help you out later today or this weekend.

Thanks,
Alex
The topic has been locked.