How can i get All my followers with one request?
If i do $this->twitter->getFollowers();
I just get 100 of my followers;
An here is the code for getting followers
/**
* Returns the authenticating user's followers.
*
* @return array
* @param string[optional] $id The id or screen name of the user for whom to request a list of followers.
* @param int[optional] $page
*/
public function getFollowers($id = null, $page = null)
{
// build parameters
$aParameters = array();
if($page !== null) $aParameters['page'] = (int) $page;
// build url
$url = 'statuses/followers.xml';
if($id !== null) $url = 'statuses/followers/'. urlencode($id) .'.xml';
// do the call
$response = $this->doCall($url, $aParameters, true, false);
// convert into xml-object
$xml = @simplexml_load_string($response);
// validate
if($xml == false) throw new TwitterException('invalid body');
// init var
$aUsers = array();
// loop statuses
foreach ($xml->user as $user) $aUsers[] = $this->userXMLToArray($user);
// return
return (array) $aUsers;
}