The Graph API is the primary way to get data in and out of Facebook's
social graph. It's a low-level HTTP-based API that you can use to
query data, post new stories, upload photos and a variety of other
tasks that an app might need to do. This guide will teach you how to
accomplish all these things in the Graph API.
/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/me",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
System.out.println("Response::" + String.valueOf(response.getJSONObject()));
}
}
).executeAsync();
Here,
AccessToken.getCurrentAccessToken() >> Login user access-token
/me>> Developer's own profile info
here also applied id/name of user/page to get that info
like: /joshuatreemusicfestival/posts/
null>> here pass parameters of actual getting which type of info of user/page like:
Bundle param = new Bundle();
param.putString("fields", "message,created_time,id,full_picture,status_type,source,comments.summary(true),likes.summary(true)");
param replace null
HttpMethod.GET>> Method of request [GET, POST, DELETE]
At last onCompleted() calling & getting response which you want...!!!
For referance