Kent Lee
- Forum posts: 2
Jan 15, 2013, 2:56:40 PM via Website
Jan 15, 2013 2:56:40 PM via Website
I need advise from experienced developers. I am currently developing an Apps which allow the user to post something to their wall via facebook api.
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!
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!
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.