On Friends app / scripts / app / login.js
After login in with FB:
The callback is invoked 2 times, duplicating all subsequent REST calls (get current user and users). I think it is even authenticating twice in a row and returning 2 different tokens.
I'm using this model on my app. How to fix it?