FQL从每张专辑中提取3张照片

时间:2013-08-23 15:17:54

标签: facebook facebook-fql

是否有“优雅的方式”从每张用户专辑中获取最后3张照片?我尝试过使用这个多参数,但它不起作用:

  $fqls = array(
    "q1" => "SELECT aid FROM album WHERE owner = $page_id",
    "q2" => "SELECT src_small,created FROM photo WHERE aid IN (SELECT aid FROM #q1) ORDER BY created DESC LIMIT 3"
  );

1 个答案:

答案 0 :(得分:1)

使用图表api,您可以执行[user_id]/albums?fields=photos.limit(3)

之类的操作