Topic-icon JFBConnect login problems on mobile (desktop is fine)

Active Subscriptions:

None
11 years 5 months ago - 11 years 5 months ago #50100 by haibar
I have a weird problem I can't solve. When I login via a desktop browser, all is fine (any of the social networks). When I login via a mobile platform (phone or tablet) using a mobile browser (e.g. Safari), then JFBConnect doesn't log me in. It just returns to the page as though I was a guest.

This is for site drinkedin.net

For example - on G+, it just returns as though I did nothing after a successful Google login.

Very weird - on Facebook... it works fine on the desktop browser. On a mobile (phone and iPad) with safari, I stay in Facebook (after FB login) and the next screen is a Facebook screen m.facebook.com/login.php?auth-token=... and the message on the screen is: "The page you requested cannot be displayed right now. It may be temporarily unavailable, the link you clicked on may be broken or expired, or you may not have permission to view this page."

Suggestions on what might be wrong?
Last edit: 11 years 5 months ago by haibar.
The topic has been locked.
Active Subscriptions:

None
11 years 5 months ago #50101 by haibar
I managed to capture the full URL that my mobile version is going to (in the strange FB case):

m.facebook.com/login.php?auth_token=e41f...%2Findex.php&refid=9
The topic has been locked.
Support Specialist
11 years 5 months ago #50105 by alzander
That Facebook URL looks correct. When I test in Chrome using the mobile simulator, I see the same behavior.. I'm returned to the login page and then the auto-login feature kicks in and is trying to repeatedly log me in.

That behavior usually indicates that something on your site is altering the return URL from Facebook in a way such that JFBConnect can't access the authentication token properly. Do you have anything on your site meant to 'switch' to a mobile view or do anything else when the browser returns?

Actually, on further testing, I just tried to login on the main page from the desktop using Firefox and ran into the exact same issue. I'm not sure why it's not working at all for me and seemingly for you, but there definitely looks to be something strange going on.

Let us know if that helps narrow some things down,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 5 months ago #50139 by haibar
Alex - I've tried a lot of things including disabling varnish for any JFBConnect related page (wasn't necessary in the past).

1. Do you have other ideas why this might fail? What URL is being sent? What URL is being return?
2. What is the best way to back out and install a previous version of JFBConnect. I really am at a loss here.
The topic has been locked.
Support Specialist
11 years 5 months ago #50156 by alzander
I'm not sure what's happening. Now, testing the exact same way I tested the other day is working just fine. Authentication works in both mobile and desktop modes of the browser and I could repeatedly do it in each.

If you're still having issues, can you try disabling Varnish entirely to see if the problem goes away? I'm not sure what would be causing the problems you describe other than caching somewhere in general and narrowing it down (or eliminating cache) is the first step.

As for the URLs being returned, when I tested the other day, the return from Facebook looked just right, so something on your site was either:
a) altering the query params before they arrived at JFBC, preventing authentication
b) JFBConnect authentication was actually working, but the HTML output was cached, so it looked like I was logged in. Possibly navigating to another page would have shown me as logged in.
c) There's a bug in JFBConnect somewhere. While always possible, this isn't one we've heard of before.

I hope that helps,
Alex
The topic has been locked.