title: Facebook adds parameters before # in Angular
body: <p>I'm trying to do Facebook login using a sails.js backend only for REST API, no file serving (which we do in nginx). </p>
  
  <p>I provide this as callback url to facebook: <a href="http://localhost/#/auth/facebook" rel="nofollow">http://localhost/#/auth/facebook</a>, but facebook prepends the code as a parameter before the hashtag, so <a href="http://localhost/?code=CODE#/auth/facebook" rel="nofollow">http://localhost/?code=CODE#/auth/facebook</a>, which causes angular/u-router to be unable to read it in stateParams/routeParams/location.</p>
  
  <p>Any clues how to fix? Thanks!</p>