FQL Photo Query

2019-08-09 14:32发布

问题:

I am attempting to query the Photo table through FQL using this query:

SELECT owner FROM photo WHERE pid="XXXX"

For some reason, no matter what pid I choose, I get an empty set response:

Facebook responded with HTTP status code 200 and response body: []

I am using RestFB.

回答1:

Do you have permissions to access the users photos?

user_photos and/or friends_photos
Provides access to the photos the user has uploaded, and photos the user has been tagged in.

https://developers.facebook.com/docs/reference/api/permissions/#user_friends_perms


Graph FQL https://developers.facebook.com/docs/reference/fql/ with sample query.