Im trying to print values from a json file to my website. I realise there is a API system for twitter how ever for the intended purpose i dont feel its needed to apply for a twitter api and wait just for a follower count status.
im not sure why. but nothing is displayed. Is there something im missing?
Here is my current code
$json = file_get_contents('https://cdn.syndication.twimg.com/widgets/followbutton/info.json?screen_names=stackoverflow');
$data = json_decode($json,true);
$twitcount = $data['followers_count'][0];
echo "<b>";
print_r($twitcount);
Visting the url below will push a json file with basic infomation about the twitter account. https://cdn.syndication.twimg.com/widgets/followbutton/info.json?screen_names=stackoverflow