8
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
- Click on "Get your own homepage like this"
- 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?