Facebookの友だちをfirendリストからランダム化しようとしています。PHPでFacebookの友達をランダム化する方法は?
私はPHPには非常に慣れているので、誰かが私を助けてくれますか?
$friends_json = file_get_contents('https://graph.facebook.com/me/friends?access_token='.$session["access_token"]);
$friends = json_decode($friends_json, true);
$friend_rand = array_rand($friends, 1); // <-- is that right? how can I print it on screen?
?私はとにかくあなたのためにそれを修正しました。 – ifaour