$ret = $facebook->api( array(
'method' => 'fql.query',
'query' => "SELECT uid, name, pic_square FROM user WHERE uid IN(SELECT uid2 FROM friend WHERE uid1 = me()) AND is_app_user = 1 ORDER BY rand() limit 12"
));
I was using this code for getting 12 random friend.But when I am replacing the above code with the below
$ret = $facebookObj->getFacebookRequestResponse($facebook, "GET", "/me/friends/?fields=id,name,picture&limit=12");
I am getting 12 friends but they are not coming in random order.How can I solve this?