implements fb autentication by js sdk.
Fix double login issue when user, who is already logged and with the app allowed, enters the app.