title: Error/blank page with Chrome and Safar browser apps for iphone when using javascript FB login code
body: <p>UPDATE:</p>
  
  <p>This issue is affecting both Chrome and safari browser apps.</p>
  
  <p>I'm trying to use Facebook login (Javascript/Parse) on my site with the following code. It works fine in the PC browser.</p>
  
  <p>Issue with Chrome app</p>
  
  <blockquote>
    <p>Error, unsupported Browser: Google Chrome for iOS does not support
    this feature. Please use Safari and try again</p>
  </blockquote>
  
  <p>It stops on the follwing url (Ive changed sensitive data to XXXX).</p>
  
  <p><a href="https://m.facebook.com/dialog/oauth?app_id=XXXX&amp;client_id=XXXX&amp;display=touch&amp;domain=kudosoo.com&amp;e2e=%7B%7D&amp;locale=en_US&amp;origin=2&amp;redirect_uri=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D40%23cb%3Df2562075ac%26domain%3DXXXX.com%26origin%3Dhttp%253A%252F%252Fkudosoo.com%252Ff3714a6424%26relation%3Dopener%26frame%3Df2a549beb4&amp;response_type=token%2Csigned_request&amp;sdk=joey" rel="nofollow noreferrer">https://m.facebook.com/dialog/oauth?app_id=XXXX&amp;client_id=XXXX&amp;display=touch&amp;domain=kudosoo.com&amp;e2e=%7B%7D&amp;locale=en_US&amp;origin=2&amp;redirect_uri=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D40%23cb%3Df2562075ac%26domain%3DXXXX.com%26origin%3Dhttp%253A%252F%252Fkudosoo.com%252Ff3714a6424%26relation%3Dopener%26frame%3Df2a549beb4&amp;response_type=token%2Csigned_request&amp;sdk=joey</a></p>
  
  <p>Issue with safari app </p>
  
  <p>It stops on the page that has my script to execute the login scripts, even with a browser refresh it does not move past this page and does not log the user in.</p>
  
  <hr>
  
  <p>I've seen some posts here <a href="https://stackoverflow.com/questions/11197668/fb-login-broken-flow-for-ios-webapp">FB.login broken flow for iOS WebApp</a> , but unsure if they will resolve it or where to place the code?</p>
  
  <p>My code is as follows:</p>
  
  <pre><code>&lt;!doctype html&gt;
  
  &lt;!-- Runs Parse and FB code that uses Facebook authentication to login user to the site and redirects them to the main content area. This page is fired from the Facebook button being clicked on the site landing page--&gt;
  
  
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="apple-mobile-web-app-capable" content="yes"&gt;
      &lt;meta name="apple-mobile-web-app-status-bar-style" content="black"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"&gt;
  
      &lt;title&gt;Fb Login&lt;/title&gt;
  
      &lt;script type="text/javascript" src="http://www.parsecdn.com/js/parse-1.2.16.min.js"&gt;&lt;/script&gt;   
  
  
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;!-- Important, must be on the page --&gt;
      &lt;div id="fb-root"&gt;&lt;/div&gt;    
  
  
      &lt;!-- Initialize the Parse object--&gt;
      &lt;script type="text/javascript"&gt;     
      Parse.initialize("XXX", "XXX");
  
  
  //Fb app information//
  
  window.fbAsyncInit = function() {
      Parse.FacebookUtils.init({
          appId      : 'XXX',
          channelUrl : 'http://XXXX/channel.html',
          status     : true,
          cookie     : true,
          xfbml      : true
      });
  
  //FB user authentication script, after this completes it fires todos_two.js to redirect user to main content page//
  
  Parse.FacebookUtils.logIn(null, {
      success: function(user) {
          if (!user.existed()) {
              alert("User signed up and logged in through Facebook!");
              window.location.href="user_home.html";
          } else {
              alert("User logged in through Facebook!");
              window.location.href="user_home.html";
          }
      },
      error: function(user, error) {
          alert("User cancelled the Facebook login or did not fully authorize.");
      }
  });
  
  
  };
  
  (function(d, s, id){
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) {return;}
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_US/all.js";
      fjs.parentNode.insertBefore(js, fjs);
  }(document, 'script', 'facebook-jssdk'));
  
  
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>