简体   繁体   中英

Using facebook graph api, fetching users tagged in photo and realted photos

We have got a requirement for facebook based application, wherein

  • We need to fetch a given photo.
  • Identify all the users tagged in that photo and then...
  • Fetch all the photos in which any of the tagged user is appearing.

Can anyone please suggest how to achieve this using facebook's graph api?

Thanks and Regards

You can access photo properties, including tags, as per the Graph API documentation (http://developers.facebook.com/docs/reference/api/photo).

To fetch all the photos of a given user, you will need to request the user_photo_video_tags extended permission from them when they authorize your application.

If all photos/users involved in the process belong to/have authorized your application then it should work. Otherwise, it could be fraught with problems, eg if said "given photo" isn't public (ie visible to "Everyone"), you will need to identify its owner and request the user_photos permission from them. Similarly, friends can tag their friends in photos, so you can't assume you'll be able to access all photos of any tagged user.

Good luck! :)

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM