title: Facebook login, redirect to server then app
body: <p>I'm trying to login via FB in my app (written using jQuery Mobile and wrapped with phonegap build). When I click on the link the app opens</p>
  
  <p>myserver.com/login</p>
  
  <p>At this point the server (python) calls FB login function. Once the user has logged in FB will redirect to my server again, where I'll do some stuff.</p>
  
  <p>Now, how can I redirect from my server back to my app? I tried to pass</p>
  
  <pre>document.URL</pre>
  
  <p>to the server and redirect there but my phone says I don't have permission to acces file://android_asset/www/index.html</p>
  
  <p>Thanks to anyone who is willing/able to help.</p>