Topic-icon Keep refreshing on Registration Page

Active Subscriptions:

None
11 years 10 months ago #24214 by nitingoyal
check mrig.in
try Signup with Facebook option
after authentication, Registration page keep refreshing
The topic has been locked.
Support Specialist
11 years 10 months ago #24221 by alzander
We heard a first report of this yesterday. Not sure what's causing it on a very few sites, but we're investigating.

Can you please try disabling the "Automatically Log Facebook Users In" setting for now, which should prevent the looping. It seems to be that Facebook isn't properly detecting a user that the user has approved your app and logged in and then trying to log them in again.

Also, have you been using JFBConnect for a while? Do you know if this problem just started, or if there were any other changes you made recently?

Thanks, and keep us posted if the above helps!
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 9 months ago #24774 by Keyvision
I just had the same problem today, it also appeared like the new window that appears from Facebook has changed so maybe it has something to do with their end.
The site is still in development so I won't post a link, but turning off the automatic Login has stopped the problem for now, so thanks.
Version: 4.2.3 of JFBConnect and Joomla 2.5.6
Also I'm using JoomlaXI's admin approval system too, I don't believe it was contributing to the issue but it might be worth mentioning.
The topic has been locked.
Support Specialist
11 years 9 months ago #24788 by alzander
Keyvision/all,
We made a minor change in 4.2.3 due to another issue we were encountering. If you're interested in making a minor roll-back of a change and testing, that will give us a bit of information as to the cause of the problem.

The change is in the /plugins/jfbcsystem/jfbcsystem.php file at line 199. You'll see the line below:
$subs = "\nFB.Event.subscribe('auth.authResponseChange', function(response) {jfbc.login.on_login();});";
Please change that to:
$subs = "\nFB.Event.subscribe('auth.login', function(response) {jfbc.login.on_login();});";
Basically, you're changing the auth.authResponseChange to auth.login.

Please let us know if that changes the behavior for the better (or worse) when you have the Automatically Log Facebook Users in setting enabled We'd love to have your feedback!

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

None
11 years 9 months ago #24811 by Keyvision
Okay I'm not having the redirect issue anymore which is good.

alzander wrote: /plugins/jfbcsystem/jfbcsystem.php file at line 199.

I found the file in /plugins/system/jfbcsystem/jfbcsystem.php file at line 199.
An extra bit of info that I did not think about is that I only have the module on a particular page so the user is not being automatically logged in until they are on that page. I might change the website a bit to have the module appear.
The topic has been locked.
Support Specialist
11 years 9 months ago #24822 by alzander
Keyvision,
When you say you aren't having the issue anymore, is that after you made the change above, or did the problem stop on it's own?

As for the placement of the login module, that's not a part of the problem. The JFBCSystem plugin fires on every page, regardless of whether a Login With Facebook button is present. So, if you have Auto Login enabled, the user will login on that page (if they already approved your app).

Hope that makes sense,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 9 months ago #24851 by Keyvision
I implemented the change above which stopped the constant refreshing, thank you for submitting it.

alzander wrote: As for the placement of the login module, that's not a part of the problem. The JFBCSystem plugin fires on every page, regardless of whether a Login With Facebook button is present. So, if you have Auto Login enabled, the user will login on that page (if they already approved your app).

That all makes sense, it appears that I'm having trouble automatically logging in with Firefox on my work PC (which lead me to think what I did above) but every other pc/mac/browser works fine so I'm not fussed. Thanks for such a great product.
The topic has been locked.
Support Specialist
11 years 9 months ago #24859 by alzander
Thanks for the feedback. We made a change in 4.2.3 from the auth.login to auth.authResponseChanged. We'll be investigating what the previous issue was and evaluate it against the few reports of repeated logging in to see which option is 'better' and if/how we can work around either problem.

Appreciate the feedback on our stuff. It takes a ton of work (and support), but we love doing it! Finally, please consider leaving a rating and review on the Joomla Extension Directory for JFBConnect, or our support. It's certainly not required, but very appreciated!
extensions.joomla.org/extensions/social-...ook-integration/7215

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

None
11 years 9 months ago #24933 by Morpheus
Hi Alex,
First - thanks for your strong support!

I installed JFBConnect 4.2.3 and I'm facing a related problem to the above scenario.
I set Auto Login Facebook Users: Yes
Logout Of Joomla Only: Yes

And the auto login works too good. by saying "too good" I mean that I can never log off :)
After I press on Log off - the Auto-Login start to work right away...

I tired the above suggestion and now I can Log-off but the auto login does not work as excepted:
The only scenario it works is after I open a tab for Facebook, open a second tab with my web site - only then it will auto login.

If I close the browser and reopen it only with my web site - the auto-login will not work and I will have to click on the login button...
Since I set the Facebook to "keep me logged-in" - every time I open Facebook - I will be connected since I never clicked on "log off".
This is the behavior I was expecting from the auto login feature, and It DID work this way until the fix...

I also tried to clean the browser cache, clean my web site cache, login to Facebook, open my web site - click on login, close my browser, open again with my web site only - still does not work.
I also tried it using FF and Chrome - same results.

I also suspect some kind of a loop in the background as I sometime face a stuck (especially when I browse my CB profile).

Please note that without the fix the auto login worked as expected so this is actually a bug, not a capability problem / cookies expiration / etc.
One last note: current code include your fix suggestion.
I already sent you the credentials for my test server, I hope you can fix this.
Thanks again for you strong support!
The topic has been locked.
Support Specialist
11 years 9 months ago #24958 by alzander
Morpheus,
We're still trying to understand the issue on your site. For us, when we close the browser and go directly to your site, we are logged in. This has been tested in IE, Safari, and Chrome. So, we're seeing different things with the onLogin setting being used instead of authResponseChange.

Can you try with a different Facebook account (one that preferably is not the administrator of your app) or even an entirely different PC. Other than that, hopefully one of the other user's watching this thread can give their feedback on how the change affects the auto-login abilities, either good or bad.

Finally, I'm not sure what you mean by:

I also suspect some kind of a loop in the background as I sometime face a stuck (especially when I browse my CB profile).

Can you explain more about what the loop in the background is?

Thanks,
Alex
The topic has been locked.