I'm trying to reproduce Facebook Login flow for mobile app. So I have to Login with Facebook, retrieve Facebook profile and then login to my server with Facebook token and profile data. To Do it I have created two requests: facebook/me - to get OAuth token and user profile data myserver/api/facebook_login - to use all this data to login
So I have a number of questions:
- how to get Facebook token ?
I have create "/me" request and put OAuth2 Barier in header:
So trying to get the token, I'm getting login screen and then the screen like that:
Looks like the token is filled in the bottom, But the popup disappeared immediately and error shown:
The next question is how to get this token as a dynamic variable ?