0

我在尝试

SELECT object_id, src_big,owner
    FROM photo WHERE pid
        IN ( SELECT pid FROM photo WHERE aid
        IN ( SELECT aid FROM album WHERE owner
        IN ( SELECT uid2 FROM  friend WHERE uid1 = me()))) ORDER BY created DESC LIMIT 20

但它只给了 2 张照片,但不是给每个朋友。

4

1 回答 1

0

也许这应该工作!

SELECT src_big_width,src_big_height, caption, owner, pid, src_big , src_small ,aid, created FROM photo WHERE aid IN (SELECT aid FROM album WHERE owner IN (SELECT uid2 FROM friend WHERE uid1=me()))

您需要friends_photos获得访问权限。此外,通过使用 Graph API 资源管理器检查您是否可以在 Graph API 中查看照片,以检查那里是否有可以通过您的 access_token 访问的数据。这将有助于排除 FQL 查询的问题。

于 2012-06-14T10:37:32.323 回答