I am building an application that uses the Facebook Graph API.
To get t开发者_开发问答he access token I should send the following request
https://graph.facebook.com/oauth/authorize? client_id=...& redirect_uri=http://www.example.com/callback
It redirects to the redirect_uri with the code to be used as access token.
How can I capture that the HttpsURLConnection is redirected and how to get the code?
Is it possible or I need to have server that gets the access token?
download the official Facebook for Android SDK and check out the examples
精彩评论