Trying to figure out the Graphi api Facebook queries. Found a request (in one of the topics):
AccessToken token = AccessToken.getCurrentAccessToken(); String userId = token.getUserId(); String path = "/friends"; new GraphRequest( token, userId + path, null, HttpMethod.GET, new GraphRequest.Callback() { public void onCompleted(GraphResponse response) { // handle the result System.out.println("Response error: " + response.getError()); System.out.println("Raw: " + response.getRawResponse()); } } ).executeAsync(); The request returns:
{"data":[], "summary":{ "total_count":49} } That is, the number of friends of the user. How can I modify the request so that it would display even the name and surname of a friend? Thank !!