我在尝试
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张照片,但不是每个朋友都有。
答案 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查询的问题。