The documentation of Facebook states:
total_count --> Total number of people who liked. This is only returned when the > flag summary=true is set.
But how do I set such a flag (summary = true) in the following call:
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{object-id}/likes",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();
(I want to know which code to use to get the JSON response with the total number of likes, not just what the url with a flag would look like.)