我正在使用 PHP SDK 进行 FQL 调用以提取用户朋友的列表。它看起来像这样:
$all_friends = $facebook->api(array('method' => 'fql.query', 'query' => 'SELECT uid, name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) ORDER BY name ASC'));
这很好用,但现在我还想从列表中排除一些朋友。我已经尝试过我认为有效的方法,但它似乎不起作用(它返回一个空列表)。
作为我正在尝试做的一个例子:
$all_friends = $facebook->api(array('method' => 'fql.query', 'query' => 'SELECT uid, name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND uid NOT IN (12345,54218,68151) ORDER BY name ASC'));
有什么我想念的吗?谢谢。