Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook JS connect unsupported browser

I am trying to do a JavaScript login from my iPhone 4 running Chrome for iOS version 26.0.1410.53 but I'm getting an error as seen below.

Here's the live URL to replicate on iPhone - http://mni.me/master

  1. Click on "Get your own homepage like this"
  2. Click on "Login with Facebook"

Here's my JavaScript

FB.getLoginStatus(function(r) {
        if (r.status !== 'connected') {
            FB.login(function (response) {
                if (response.authResponse) {
                    console.log('Welcome!  Fetching your information.... ');
                } else {
                    console.log('User cancelled login or did not fully authorize.');
                }
            });
        } else {
            console.log("User alredy connected with FB app. Checking if user is in DB");
            var url = 'api/isUser.php?fid='+r.authResponse.userID;
            isUser(url);
        }
    });

It's working fine on Chrome for Desktop, but I'm getting this error on iPhone...

What is the problem and how can I fix it?

like image 579
Jacques Blom Avatar asked May 15 '13 17:05

Jacques Blom


People also ask

Why is Facebook telling me my browser is unsupported?

The cause behind this issue is the FB Purity Chrome extension that you are using. Figured it out. It's the FB response to the Fluff Busting Purity Revert extension. Remove extension, problem gone.

How do I fix an unsupported browser?

If you are currently on an unsupported browser or received the message that you were trying to access the site from an unsupported browser, the best thing to do is update the browser to the most current version available.

Can't connect to Facebook but internet is working?

Try refreshing your browser or reopening the site; on a mobile app, close and reopen the app. You can also check to see if Facebook is offline and then restart your device, update apps, and clear your cache.

Why am I getting an unsupported browser error?

Try and keep your browser up to date by looking out for any updates and installing them ASAP. If you see the message 'Unsupported browser' this means you are using a browser such as Internet Explorer or Mozilla Firefox that we don't currently support.


2 Answers

It's been around since Chrome 19.

Check here https://developers.facebook.com/bugs/325086340912814/ for more details.

I'm not sure if there will be a workaround or fix soon.This issue was logged about 10 months ago.

https://code.google.com/p/chromium/issues/detail?id=136610

like image 132
AlvinArulselvan Avatar answered Sep 21 '22 12:09

AlvinArulselvan


I've been struggling with this for awhile.

This may not be a perfect solution but I was able to get around this by getting the login url using the PHP SDK (https://developers.facebook.com/docs/reference/php/facebook-getLoginUrl/) and linking that to the Facebook button. It works on Chrome mobile.

I'm not sure if there's an equivalent to the getLoginUrl for the JS SDK.

like image 33
Tony Paternite Avatar answered Sep 21 '22 12:09

Tony Paternite