I\'m trying to build a \'Follow\' button with a vertical followers count above it. I had a solution working until Twitter retired the 1.0 API today and now require an Oauth
i follow this step.and to get twitter follower count
use this code
$url = 'https://api.twitter.com/1.1/statuses/user_timeline.json';
$getfield = '?screen_name=Android';
$requestMethod = 'GET';
$twitter = new TwitterAPIExchange($settings);
$follow_count=$twitter->setGetfield($getfield)
->buildOauth($url, $requestMethod)
->performRequest();
$testCount = json_decode($follow_count, true);
echo "";
echo $testCount[0]['user']['followers_count'];
echo "
";
you can change the "screen_name" and get the follower count.
cheers.