Hi Rick,

Depending on what you are trying to obtain we recommend using the
friends/ids [1] and followers/ids [2] methods in combination with the
user/lookup [3] if you need more information about them.

Also, you want to make sure you're client is using the
api.twitter.comdomain and not
twitter.com.

Hope that helps,
Matt

1. http://dev.twitter.com/doc/get/friends/ids
2. http://dev.twitter.com/doc/get/followers/ids
3. http://dev.twitter.com/doc/get/users/lookup


On Fri, Jun 11, 2010 at 3:46 AM, Rick <rickstuivenb...@gmail.com> wrote:

> I hope somebody could help me with my problem regarding the Twitter
> OAuth
>
> If I use $oauth->get('statuses/followers'); I get the first 100
> followers. If I use $oauth->get('statuses/followers', array('cursor'
> => $cursor)); I have to use this code:
>
> <?php
> $cursor = -1;
> $followers = $oauth->get('statuses/followers', array('cursor' =>
> $cursor));
> $totaal = count($followers);
>
> while ($totaal > 1) {
> for($x=0; $x<$totaal; $x++)     {
>    if(preg_match("/^".date('D M d')." 0([3-9]{1}):([0-9]{2}):([0-9]
> {2}) \+([0-9]{4}) ".date('Y')."/",$followers[$x]->status->created_at)
> || $followers[$x]->protected) {
> }
> }
>
> $cursor++;
>
> $followers = $oauth->get('statuses/followers', array('cursor' =>
> $cursor));
> $totaal = count($followers);
>
> ?>
>
> But that seems not to get working. And without the cursor idea, I get
> only the first 100 followers. Is there a easy solution for this?
>



-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris

Reply via email to