在单个fql中为每位朋友获取Facebook Friend照片2

时间:2012-06-14 10:26:59

标签: facebook

我在尝试

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张照片,但不是每个朋友都有。

1 个答案:

答案 0 :(得分: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查询的问题。