require_frame(); $all_friends = $client->friends_get(); $with_app = $client->friends_getAppUsers(); $without_app = array_diff($all_friends, $with_app); function get_names($all_friends) { foreach($all_friends as $key => $uid) { echo "
"; } } ?>