I am working on an app in which I have to use facebook login for accessing data from my backend server. I have search on this and got that:
- First, the user will enter username and password of facebook then the request goes to server.
- If user authenticated then fetch access token of user.
- Send this access token on server.
- The server will verify this access token.
I have successfully connected my app with facebook i.e, now user can logged from my app to facebook. But I don't now how can I get the access token of user and also how I can verify this access token on server.
Can you provide me some sample code for this. Please help me I am stuck in it from a long time.