2

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

FQL查询

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 相册

在此处输入图像描述

4

1 回答 1

1

添加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
于 2013-04-07T21:15:53.390 回答