简体   繁体   中英

Is it possible to grab user's friend's photo Facebook Graph API

I want to know if it is possible to retrieve a user's friend's photo (not the profile photo but ones that the user is able to view) via Graph. I know that you can retrieve photos of friends that the user has been tagged in it, but there are photos that the user can view (using normal Facebook) but not tagged on.

I know this might sound like it would be bad for security reasons.

Thanks :)

Did you check the permissions?

As seen here ...

To read the 'photo' object you need friends_photos permission to access friends' photos and photos in which the user's friends have been tagged


Just wanted to add that (to my understanding):

You can only see if the current user gave you the required "friends_photos" permission.

If they did give you that permission, then you should be able to get the list of photos of the current user's friends... but only of the the albums/photos with a privacy setting of:

  • Friends
  • Friends of Friends
  • or if the current user is part of "Specific People or Lists"

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