If you created the app after 4/30/2014 you have only access to v2.0 of the API and you can not access any friends data
What Facebook permissions are required to view photos that your friends are tagged in?
-
20-07-2023 - |
Вопрос
It seems that the answer is the friends_photos
permission, see these answers
- How to retrieve facebook user's friends albums information with facebook php sdk
- Facebook Graph API: Permissions to Friends Photos
However, there is no reference to it in the documentation. I fear it may have been removed? Can anyone confirm it is still possible to get friends photos?
Решение
Другие советы
There is limited access to friend's timeline, photos and videos in v2 API.
UserA can see the timeline, photos and videos of UserB if and only if,
- They are friends
- Both granted
user_friends
permission to your application and - UserB also grants the
user_posts
,user_photos
anduser_videos
permissions to your application.
The following steps can be used to test the same in the graph API explorer.
- using access token of UserA call
me/friends
- get id of UserB from response
- call
[UserB-id]/albums
- get album id
- call
[album-id]/photos
Не связан с StackOverflow