$query = 'SELECT friend_count FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) and sex='male'';
$url = "https://graph.facebook.com/fql?q=" . urlencode($query) .
"&access_token=" . $access_token;
$data = json_decode( file_get_contents ($url));
$boys = count($data[data]);
echo $boys;
我已经尝试过这种方法,但无法得到想要的结果......我想做一个这样的应用程序