Android: I would like to call a facebook profile image for app user profile [closed]

1

I'm in doubt as to what code to use to call this face profile image, for my user profile, can anyone help me?

    
asked by anonymous 10.02.2017 / 17:10

1 answer

1

It will depend a lot on technology used for development, more basically you will have to use the Facebook API:

link

In the case of Android you have to implement something like:

/* faz a chamada REST */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{user-id}/picture",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* Trata o resultado lendo o objeto GraphResponse */
        }
    }
).executeAsync();
    
10.02.2017 / 17:27