Currently, on our website, we allow users to enter / register their Facebook credentials using graph api . We are creating a mobile application, and we want to also support the login on Facebook. I know about the Android SDK and how to get the access token, my question is:
- As soon as I have a facebook access token, how can I authenticate the user using our backend system.
One idea is to pass the access_token to my server server and request the facebook user id (I don't want to pass the facebook id because someone might just fool the request). Now, using the facebook id, I can associate it with our user id and register the user.
- Will this method work, or is there another solution
source
share