How to search for tagged_places in all friends on Facebook Graph

时间:2015-07-31 20:55:14

标签: android facebook facebook-graph-api

I am writing an Android app and would like to get the tagged_places of all friends of the user. (All friends = all friends who have also installed and authorized my app, because of Facebook permissions.)

My app asks for the following permissions: user_friends, user_tagged_places

I think it should be a nested query like this:

/me?fields=friends{tagged_places}    // query 1

But if I run that in my app it results in the following error:

{Response:  responseCode: 400, graphObject: null, error: {HttpStatus: 400, errorCode: 100, errorType: OAuthException, errorMessage: (#100) Unknown fields: tagged_places.}}

I can run the following queries without error:

/me?fields=friends{photos}
/me?fields=friends{albums}
/me?fields=friends{about}
/me?fields=friends{devices}
/me?fields=friends{location}

Why do these queries run without error, but just query 1 gives a problem?

1 个答案:

答案 0 :(得分:0)

原来这是一个错误。 Facebook现在修复了它:https://developers.facebook.com/bugs/851547311618854