private function _get_friends($uid) { //$weiboclient = ZombieKiller_WeiboClientFactory::create(); $weibocilent = new SaeTClient(WB_AKEY, WB_SKEY, $_SESSION['last_key']['oauth_token'], $_SESSION['last_key']['oauth_token_secret']); $users = array(); $result = $weibocilent->friends_ids(-1, 200, $uid); $users = array_merge($users, $result['ids']); while ($next_cursor = $result['next_cursor']) { break; $result = $weibocilent->friends_ids($next_cursor, 200, $uid); $users = array_merge($users, $result['ids']); } $users = array_unique($users); return $users; }