0
I want to view posts from a facebook fanpage in an app.
I’ve been doing some research and some people helped me and told me to use the Facebook API. Pis well, I am using, but, as facebook does not help anyone, I come here to ask for your help.
I’m using the code below, but from there how do I make the posts appear?
PS: I already have the access token but I don’t 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();
Carlos, you had said that "I will import 'Httpmethod.GET' it from the bug". What is the mistake? Better describes your doubt that hence the answer becomes simpler and objective.
– Bruno César
Able to solve Bruno, I don’t know how else I got kkkkkk I think it was only the version of the api changed from 4.0.0 to 4.1.0
– Carlos Eduardo Silva
Cool Carlos, thanks a lot.
– Bruno César
but I still don’t know how to take the information and display the posts, and the access token I already have but I can’t set @Brunocésar
– Carlos Eduardo Silva