我打算使用FQL从朋友相册中获取包含某些特定条件的照片。该标准基于时间范围($ since - $ until)以及基于与某些字符串的相似性的相册标题的相似性(等于SQL中的“LIKE”)。这是我用来获取照片的FQL多重查询:
$multiQuery = '{
"query1":"SELECT uid, name FROM user WHERE uid = me() OR uid IN (SELECT uid2 FROM friend WHERE uid1 = me())",
"query2":"SELECT aid, object_id, owner, link, created, location, name FROM album WHERE owner IN (SELECT uid FROM #query1) AND created>= '.$unix_since_date.' AND created<= '.$unix_until_date.' AND (strpos(name,\''.$event.'\')>=0 OR strpos(name,\''.$organization.'\')>=0 OR strpos(name,\''.$location.'\')>=0)",
"query3":"SELECT object_id, pid, aid, owner, src_small, src_big, caption, created, place_id, like_info, comment_info FROM photo WHERE aid IN (SELECT aid FROM #query2)"
}'; `
问题: 一些用户可以根据标准成功地从他们的朋友中选择照片。一些用户可以部分获得结果,而其他一些用户无法选择AT ALL,尽管他们的朋友已经上传了符合所选条件的相册(这些朋友不会限制他们的专辑)。
我一直试图弄清楚为什么用户之间的选择结果几天不一致。有什么想法吗?