Syntax
1
2
3
4
5
|
<?php
$page = "koonktechnologies";
$count = fb_fan_count($page);
echo $count;
?>
|
1
2
3
4
5
6
|
function fb_fan_count($facebook_name)
{
$data = json_decode(file_get_contents("https://graph.facebook.com/".$facebook_name));
$likes = $data->likes;
return $likes;
}
|
1
2
3
4
5
|
<?php
$page = "koonktechnologies";
$count = fb_fan_count($page);
echo $count;
?>
|
Hello Friends! I am Ramana a part time blogger from Hyderabad.
0 comments:
Post a Comment