Reputation: 5023
I am developing a web application using Java. I need to access my friends photos and need to select the photo in which he is tagged. ( i.e ) His face should be there in that photo.
How to do it with Facebook Api's? I have searched and got few SO posts for taking profile picture of friends like this link1 link2, but I couldn't get anything related to accessing friends photos and getting their images in which they are tagged/ friends face is available.
Can someone help me out on how to accomplish the above case?
Upvotes: 0
Views: 563
Reputation: 1054
See https://developers.facebook.com/docs/reference/fql/photo_tag/
To get links you have to run query like
select link from photo where object_id in
(select object_id from photo_tag where subject=me())
Of courset instead of me()
you have to write your friend id.
Note, that
To read the photo_tag table you need the following permissions: User: user_photos permissions to access photo tag information that a user is tagged in. friends_photos permissions to access photo tag information that a friend is tagged in.
BTW you will receive photos on which the person is tagged, but these photos may contain no real image of person.
Upvotes: 1