Thursday , November 7 2024

SHOW NUMBER OF PEOPLE WHO HAVE LIKED YOUR FACEBOOK PAGE

function fb_fan_count($facebook_name)
{
$data = json_decode(file_get_contents(“https://graph.facebook.com/”.$facebook_name));
$likes = $data->likes;
return $likes;
}

Syntex:

<?php
$page = “w2class.com”;
$count = fb_fan_count($page);
echo $count;
?>

About admin

Check Also

Resize Images in php

Creating thumbnails of the images is required many a times, this code will be useful …

Leave a Reply