I want to display the posts from a Facebook FanPage in an app.
I've been researching and some people have helped me and said to use the facebook API. Well, I'm using it, but since facebook does not help anyone, I come here to ask for your help.
I'm using the code below, but from here how do I make the posts appear?
PS: I already have the access token but I do not know how to use it.
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/251217778341818/feed",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
@Override
public void onCompleted(GraphResponse graphResponse) {
try {
String titulo = graphResponse.getJSONObject().getString("");
} catch (JSONException e) {
e.printStackTrace();
}
}
}
).executeAsync();