2

我正在尝试获取用户公开照片(朋友的朋友)。当我浏览 facebook 时,我会看到它们,但我无法通过 API 访问它们。两者都不

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

也不

.../albums

也不

.../photos

也不

.../photos/uploaded

作品。

有任何想法吗?

4

1 回答 1

1

要访问照片(无论是否公开),您需要获得许可。因此只能访问您的照片(使用user_photos许可)或朋友的照片(使用friends_photos许可)。

如果你想抓取公共照片,你只能通过检查用户的公共提要来做到这一点。即进行API调用:https://graph.facebook.com/{user_id}/feed然后过滤条目以查看是否发布了任何照片。

于 2014-01-08T15:28:29.127 回答