私はこれを試し、カーソルを追加しましたが、それでも最初の 100 人のフォロワーしか取得できませんでした。
<?php
$cursor = -1;
$account_from = 'username';
do
{
$json = file_get_contents('http://api.twitter.com/1/statuses/followers/' . $account_from .'.json?cursor=' . $cursor);
$accounts = json_decode($json);
foreach ($accounts->users as $account)
{
$a[] = $account->screen_name ;
}
$cursor = $accounts->next_cursor;
}
while ($cursor > 0);
foreach($a as $f) {
echo $f ;
}
?>
それを行うためのより良い、より簡単な方法はありますか?どこが間違っているのですか?助けてください?