After a couple hours work and a little help from Sahil Mittal we've managed to retrieve the Instagram Follower Count using jQuery / json and PHP. This is what we've managed to put together and hope this helps anyone else looking to get Instagram information.
Our jQuery:
// INSTAGRAM COUNT WITH HOVER
$('.instagram a').hover(
function () {
var instaurl = 'getdata.php'; // Add your PHP URL here.
$.getJSON(instaurl, function(data){
var instacount = data["data"]["counts"]["followed_by"];
$('.instagram a').html(instacount);
});
},
function () {
$('.instagram a').html('Instagram');
});
Our PHP (getdata.php) :
header('Access-Control-Allow-Origin: *');
header('Content-Type: application/json');
$instaurl = file_get_contents("https://api.instagram.com/v1/users/XXXXXXX/?access_token=XXXXXXXXXXXXXXXXXXXX"); // Add your ID & Access Token
echo $instaurl;