You should not increment your cursor, because Twitter returns a cursor
for you. And if cursor is 0, it means that there are no more pages (-1
+ 1 = 0).

Check your $followers variable that you got from the first call. It
should be called something like next_cursor.

On Jun 25, 2:26 pm, Rick <rickstuivenb...@gmail.com> wrote:
> Howdy!
>
> I am currently making my application OAuth compatible from basic auth,
> currently I have a issue I need to get resolved in order to switch to
> the new OAuth method.
>
> I am getting my followers from: $oauth->get('statuses/followers'); but
> that only gives me the last 100 followers, I trought it would be easy
> to do it this way:
>
> $cursor = -1;
> $followers = $oauth->get('statuses/followers', array('cursor' =>
> $cursor));
> // Other code here..
>
> $cursor++;
> $followers = $oauth->get('statuses/followers', array('cursor' =>
> $cursor));
>
> Is it possible to get all my users, because this code does not work
> and my inspiration was wrong.
>
> Hopefully you can help me.
>
> Regards,
>
> Rick

Reply via email to