Why doesn't the API return photos and albums visible to an authenticated user? (Has permission friends_photos)

Edit: made an official error report from developers. Facebook.com

Gets one of the following values:

graph.facebook.com/me/photos
graph.facebook.com/me/albums

returns a lot of photos.

targeting:

graph.facebook.com/1146720040/photos
graph.facebook.com/1146720040/albums

Return:

 { "data": [ ] } 

1146720040 is a friend, and I DO have friends_photos permission. I tried this with ~ 10 different users, all friends, and no one returned any photos. All users have photos that I see when I look at facebook.com.

Why doesn't the API return photos and albums that are visible in the browser?

PS: I use https://developers.facebook.com/tools/explorer/ to check requests, if that matters.

+4
source share
2 answers

Calling graph.facebook.com/[user_id]/photos returns the photos for which the user is tagged for this user. AFAIK you cannot use it to retrieve any photos except registered users.

You need to use graph.facebook.com/[album_id]/photos to get friends photos.

To get from a user, you must get a list of album_ids from a single friend.

+2
source

Your application does not have access. To access

user_photos permission is required.

photo information

https://developers.facebook.com/tools/explorer . Check this site and create a temporary access token, this is a hard-set value and check. He will work

+2
source

Source: https://habr.com/ru/post/1386607/


All Articles