Reputation: 11
Facebook released a new version of its well-known graph api, and I think that the documentation provided by https://developers.facebook.com/ is quiet confusing. I'm actually working on an app that will need a facebook connection; therefore I would like to have some proper, let's say more straight forward, help or guidance. I already tried a couple of things but it seems that I'm trying it the wrong way.
AccessToken accessToken = intent.getExtras().getParcelable("aaaa");
new GraphRequest(accessToken,"/{id,birthday",null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
Log.d("aaaa",response.toString());
}
}
).executeAsync();
I hope that someone will help me, and provide me some advices.
Upvotes: 1
Views: 1001
Reputation: 74014
Try this instead:
AccessToken accessToken = intent.getExtras().getParcelable("aaaa");
new GraphRequest(accessToken,"/me?fields=id,birthday",null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
Log.d("aaaa",response.toString());
}
}
).executeAsync();
Upvotes: 1
Reputation: 10750
Well ! Best solution that i have found so far is that:
/v2.4/me/
or v2.4/userIdForWhichYouWantToAccessData
new GraphRequest()
. I hope its helpful :)
Upvotes: 0