title: Blank Screen with Mobile Web App with Facebook Connect
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8019798/blank-white-screen-after-fb-login-via-web-app">blank white screen after FB login via web app?</a>  </p>
  </blockquote>
  
  
  
  <p>I am building a web app that can open full-screen on iPhone and am following the code for Facebook mobile web, which can be found at: <a href="https://developers.facebook.com/docs/guides/mobile/web/" rel="nofollow noreferrer">https://developers.facebook.com/docs/guides/mobile/web/</a></p>
  
  <p>When I try to login using the Facebook login page, I get a blank white screen after I click the "login" button. The user IS logged in though.. I know this because if I close and reopen the web app, I check the login status and try to get some user info, and it works fine.</p>
  
  <p>I have seen others with the same here: <a href="https://stackoverflow.com/questions/8019798/blank-white-screen-after-fb-login-via-web-app">blank white screen after FB login via web app?</a></p>
  
  <p>It seems that somebody has identified a workaround, but I cannot get it to work. The code I am using is:</p>
  
  <pre><code>   function loginUser() {    
       FB.login(function(response) { }, {scope:'email'});    
       }
  </code></pre>
  
  <p>Others have indicated that I need to utilize the workaround here:</p>
  
  <pre><code>login({scope:'email', redirect_uri:'where_to_go_when_login_ends'})
  </code></pre>
  
  <p>Does anyone know how to merge these pieces of code to get it to work?</p>
  
  <p>Thanks!</p>