PHP : Display Facebook fans count in full text

<?php 

function fb_fan_count($facebook_name){
    // Example: https://graph.facebook.com/digimantra
    $data = json_decode(file_get_contents("https://graph.facebook.com/".$facebook_name));
    echo $data->likes;
}

?>

Source: http://www.digimantra.com/

Processing your request, Please wait....

No Responses to “PHP : Display Facebook fans count in full text”

Comments (Your Comments)

Leave a Reply

You must be logged in to post a comment.