I am developing an Android application as well as a website (which also has an Android client connection). I want to use the FB login, but the problem I see is this:
Client, use the FB login and then get access_token.
Both the client and the web server communicate using this access_code, since the web server needs to know which account the client belongs to. I also want to embed the FB login on the website.
One of the ways I was thinking about was this:
Login: 1) Log in to FB and get access_token. 2) Use access_token to get user information. 3) Provide access_token and user information on the web server. 4) The web server also performs the same FB operation with access_token and receives user information. 5) Confirm the correspondence of the user information and determine it. 6) Create another access_token between the client and the web server for this link.
It even makes it more valid, or maybe just logs in and gets the user's email address as the actual account and tells the web server that it is an account to use.
Or did someone do it differently?
android login web-services facebook
Stephen thompson
source share