如何从FQL获取所有Facebook照片

时间:2013-02-28 14:56:53

标签: php facebook limit facebook-fql

我正在使用FQL收集应用程序的所有Facebook照片,我在Facebook上有533张照片,但问题是此query只会返回400条记录。

FQL QUERY

SELECT src_big,target_id FROM photo WHERE pid IN
(SELECT pid FROM photo_tag WHERE subject='".$session_fbuserid."') OR
pid IN (
    SELECT pid FROM photo WHERE aid IN
        (SELECT aid FROM album WHERE owner='".$session_fbuserid."' AND type!='profile')
)

我的Facebook专辑

enter image description here

1 个答案:

答案 0 :(得分:0)

limit 1000添加到查询的末尾。

SELECT src_big,target_id FROM photo WHERE pid IN (SELECT pid FROM photo_tag WHERE subject='".$session_fbuserid."') OR pid IN (SELECT pid FROM photo WHERE aid IN (SELECT aid FROM album WHERE owner='".$session_fbuserid."' AND type!='profile')) LIMIT 1000