Im trying to write a graph API query url that will return photos that have the user and their partner tagged in them. I can get the users partner ID from their profile data using the '/me' endpoint however once I have their significant others ID I'm unsure how to proceed or even if its possible.
Ive tried queries like: me?fields=tagged.with(<significant other id>)
and me/photos/<significant other id>
hoping that it would work in the same way as me/friends/<friend id>
does, but no joy.
Any ideas?
Thanks very much
There can be no global query like "Give me all photos in which Person1 and Person2 are tagged", because the user_photos
permission is always relative to the user which gave your app the permission to use his data.
See
A solution could be to
Query to the me
user's and his significant others ids:
/me?fields=id,significant_other
Query all the tags from all the me
user's albums
/me/albums?fields=photos{id,tags}
Check in for application if both ids occur in the same tag
As I wrote, you cannot do this for all photos on Facebook, but only for photos of a specific user which gave you permissions.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.