PHP get twitter follower count

by sabitha 2012-06-07 15:14:00

$url = "http://twitter.com/users/show/hiox";
$response = file_get_contents ( $url );
$t_profile = new SimpleXMLElement ( $response );
$count = $t_profile->followers_count;

echo "Hiox Twitter Followers : ".$count;

// Output
Hiox Twitter Followers : 73

Tagged in:

693
like
0
dislike
0
mail
flag

You must LOGIN to add comments