You don’t want your Facebook fans to feel left out. Use this snippet to show them off too – replace YOUR-PAGE-ID with your page ID.

 
<?php 
$page_id = "YOUR PAGE-ID"; 
$xml = @simplexml_load_file("http://api.facebook.com/restserver.php?method=facebook.fql.query&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;query=SELECT%20fan_count%20FROM%20page%20WHERE%
 
 
20page_id=".$page_id."") or die ("a lot"); 
$fans = $xml->page->fan_count;
echo $fans; 
?>