title: FirebaseSimpleLogin not working in Windows 8 app
body: <p>I asked a <a href="https://stackoverflow.com/questions/19828632/is-it-possible-to-use-firebase-with-a-windows-8-app">question earlier</a> about if it was possible to use Firebase in a Windows 8/WinJS app. @MichaelLehenbauer told me that I just needed to add the following line to my code in order to fix a bug in firebase.js:</p>
  
  <pre><code>Firebase.INTERNAL.forceWebSockets()
  </code></pre>
  
  <p>This worked great and allowed me to read and write to my Firebase. However, now I am trying to get auth working in Windows 8 and running into many issues. I am trying to use the Facebook login but when I call <code>auth.login("facebook")</code>, my app loses focus and a new tab in the modern Internet Explorer app (not the desktop app) is opened with the typical Facebook login prompt. If I put in my credentials and hit login, nothing happens. I need to go back to my app but then it fires up a new IE tab and the process starts again. Instead of opening a new IE tab, Firebase should internally be opening an in-app dialog like seen in the top image <a href="http://www.c-sharpcorner.com/UploadFile/99bb20/create-login-screen-in-metro-style-application/" rel="nofollow noreferrer">here</a>.</p>
  
  <p>So, since I couldn't get the Firebase Facebook login working in WinJS, I tried doing the Facebook login myself and then create Firebase users using the email/password auth. However, when I run:</p>
  
  <pre><code>auth.login("password", {
      email: "me@example.com",
      password: "password"
  }); 
  </code></pre>
  
  <p>I get the following warning (which is the same warning I received from firebase.js befoore Michael suggested to me to force web sockets):</p>
  
  <pre><code>APPHOST9601: Can’t load &lt;https://auth.firebase.com/auth/firebase?&amp;firebase=[my_firebase]&amp;transport=jsonp&amp;email=me%40example.com&amp;password=password&amp;callback=FirebaseSimpleLogin._callbacks._firebaseXDR13889674277557&gt;. An app can’t load remote web content in the local context.
  </code></pre>
  
  <p>I'm not sure if this is another web sockets issue or not, but it looks like FirebaseSimpleLogin is just not working very well in Windows 8 apps. Are there any workarounds to these problems? Even better, is there any plan to provide full support out of the box with Windows 8?</p>