Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $e = 0;
- $cursor = -1;
- $full_followers = array();
- do {
- //SET UP THE URL
- $follows = $oTwitter->get("followers/ids.json?screen_name=youruser&cursor=".$cursor);
- $foll_array = (array)$follows;
- foreach ($foll_array['ids'] as $key => $val) {
- $full_followers[$e] = $val;
- $e++;
- }
- $cursor = $follows->next_cursor;
- } while ($cursor > 0);
- echo "Number of followers:" .$e. "<br /><br />";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement