I'm using the PHP SDK to make an FQL call to pull a list of a user's friends. It looks like this:
$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'));
This is working great but now I'd also like to exclude a few friends from the list. I've tried what I assumed would be valid but it appears to not be working (it returns with an empty list).
As an example of what I'm trying to do:
$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'));
Is there something I'm missing? Thanks.