I understand how facebook authenticate the user in android. My problem now is how it actually communicating or registering the user to my own server.
Given an example. First time user, when user launch my app, user tap on "Login with Facebook". Once user is authenticated, obviously I wanna store the user's name, email address into my database. Is it practical that sending user's info via HTTP to my web server and store into the database from the user's mobile?
What I can think of is, after user authenticated, the app will send the access token to my webserver via HTTPs (secured). From my server side, I can use the token to grab whatever info I want via the Facebook Api. The only fallback on this approach is I have to build a web service gateway which used to handle mobile request (which I am lazy to do so XD).
Please advise what is the best way to do it. Thank you!