是否有“优雅的方式”从每张用户专辑中获取最后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"
);
答案 0 :(得分:1)
使用图表api,您可以执行[user_id]/albums?fields=photos.limit(3)