/home/sites/santaradio.co.uk/public_html/assets/php/footer.php
<li>
<a href="https://www.facebook.com/santaradiouk/" target="_blank"><?php
function getData($username){
$access_token = '864261717011148|YaGzBBYecruaI9j0RsjBuBsemrI'; //Replace it with your Access Token
$json = json_decode(file_get_contents("https://graph.facebook.com/".$username."?fields=fan_count&access_token=".$access_token),true);
return $json;
}
/home/sites/santaradio.co.uk/public_html/assets/php/footer.php
<li>
<a href="https://www.facebook.com/santaradiouk/" target="_blank"><?php
function getData($username){
$access_token = '864261717011148|YaGzBBYecruaI9j0RsjBuBsemrI'; //Replace it with your Access Token
$json = json_decode(file_get_contents("https://graph.facebook.com/".$username."?fields=fan_count&access_token=".$access_token),true);
return $json;
}
/home/sites/santaradio.co.uk/public_html/assets/php/footer.php
function getData($username){
$access_token = '864261717011148|YaGzBBYecruaI9j0RsjBuBsemrI'; //Replace it with your Access Token
$json = json_decode(file_get_contents("https://graph.facebook.com/".$username."?fields=fan_count&access_token=".$access_token),true);
return $json;
}
$data = getData("santaradiouk");//Replace it with your Username
/home/sites/santaradio.co.uk/public_html/questions/index.php
</div>
</section>
<?php include '../assets/php/footer.php';?>
<!-- jQuery -->