I have 3 entities:
1.Android Phone
2.Local Server
3.Fb Server
I want user to login from his phone on to FB , but once authenticated , I want to be able to pull data into local server from FB(no data on to phone).
What is the best way to do this ?.
Is there a way to do this using oAuth ?
This is certainly no problem. Just implement the server-side authentication flow on your web server. Instead of placing a login button on a website where you redirect the user to the Facebook dialog, you open the browser on the smartphone (or embedd a Webview) with that URI. The
redirect_urithen points to your web server callback, where you receive the authorization code. Then you exchange that code for an access token by calling Facebook from your server and you’re done.On the phone, point the browser to:
After handling the callback, issue a request from your server to: