0

I am stuck on how to retrieve the profile pic from this requests response. This code was provided in the GraphAPI documentation.

        Session session = ParseFacebookUtils.getSession();

    /* make the API call */
    new Request(
        session,
        "/me/picture",
        null,
        HttpMethod.GET,
        new Request.Callback() {
            public void onCompleted(Response response) {
                /* handle the result */

            }
        }
    ).executeAsync();

What should I be looking to do to retrieve the picture from the response?

Coova
  • 1,818
  • 5
  • 36
  • 63
  • I am not exactly sure do you need to use Graph API to retrieve profile picture for a user. Once you have user id, it should be possible to use url http://graph.facebook.com/123/picture , where 123 is user id or username, to load profile picture. And if you want to use Graph API, you might need to use _fields_ parameter, i.e http://graph.facebook.com/123?fields=picture . – harism Jul 13 '14 at 23:16

1 Answers1

0

Have a look at my answer at How to download image from facebook Graph API I guess you're facing a redirection problem...

Community
  • 1
  • 1
Tobi
  • 31,405
  • 8
  • 58
  • 90