Simple Facebook Fan count without making a API.

Here is a simple code to put in to count the number of Facebook fans you have on any of your pages. All you need is your Facebook page id: (

Just copy and paste wherever you need this.

$page_id = "XXXXXXXXXXXX";
$xml = @simplexml_load_file("".$page_id."") or die ("a lot");
$fans = $xml->page->fan_count;
echo $fans;

Replace the “XXXXXXXXXXXX” with your Facebook ID and enjoy!