开发者

I want to know the HTTPSConnection redirected to which URL?

开发者 https://www.devze.com 2023-01-02 00:41 出处:网络
I am building an application that uses the Facebook Graph API. To get t开发者_开发问答he access token I should send the following request

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

0

精彩评论

暂无评论...
验证码 换一张
取 消