views:

194

answers:

1

I am building an application that uses the Facebook Graph API.

To get the 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?

A: 

download the official Facebook for Android SDK and check out the examples

Pentium10