Facebook JS connect unsupported browser

I'm trying to make a JavaScript login from my iPhone 4 running Chrome for iOS version 26.0.1410.53, but I get an error message as shown below.

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

  • Click "Get Your Homepage Like This"
  • Click "Sign in with Facebook"

Here is 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 works fine on Chrome for Desktop, but I get this error on the iPhone ...

What is the problem and how to fix it?

+8
google-chrome iphone facebook
source share
2 answers

That was with Chrome 19.

Read more https://developers.facebook.com/bugs/325086340912814/ .

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

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

+1
source share

I'm struggling a bit with this.

This may not be the ideal 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 a link to the Facebook button. It works on Chrome mobile.

I am not sure if there is equivalent getLoginUrl for JS SDK.

+1
source share

All Articles