Reputation: 148
I am trying to get user public photos (friend's friend). When i just browse facebook I see them, but I can't access them via API. Neither
SELECT created, link, caption, images, like_info FROM photo WHERE owner IN (SELECT uid FROM user WHERE username = "...") OR object_id IN (SELECT uid FROM user WHERE username = "kaja.szuminska") OR object_id IN (SELECT object_id FROM photo_tag WHERE subject IN (SELECT uid FROM user WHERE username = "...")) ORDER BY like_info DESC LIMIT 0, 100
nor
.../albums
nor
.../photos
nor
.../photos/uploaded
works.
Any ideas?
Upvotes: 2
Views: 435
Reputation: 15457
To access photos (public or not) you need permission. So it's only possible to access your photos (using user_photos
permission) or friends' photos (using friends_photos
permission).
If you want to scrape public photos, you can only do so by checking the user's public feed. I.e. making an API call to: https://graph.facebook.com/{user_id}/feed
and then filter through the entries to see if any photos were posted.
Upvotes: 1