Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Show likes of a fan page Facebook in your page
//persian comment
// value page_id zir ra be value page id khod jabeja konid
// bari bedast avardan value page be in site moraje konid
//English comment
//change value of page_id to your page id of fanpage
//you can find your page value id with this site :
$pageId = "124878794919";
$xml = @simplexml_load_file("".$pageId."") or die ("a lot");
$count = $xml->page->fan_count;
<a class="FB" href="" style="text-decoration:none; "> <?php echo $count; ?> </a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.