How to display Facebook friend count on your Drupal site I was hoping for some insight as to how I should go about getting my Fan Page friend count to display on my Drupal driven site.

Are there any good tuts out there?

Any help would do

Thanks!
Mind you I have the Drupal for Facebook module installed. So this is what I did:

function facebook_count($username) {
$url = "https://graph.facebook.com/".$username;
$fbData = json_decode( file_get_contents( $url, 0, null, null ), true );
return intval($fbData['likes']);
}


I then displayed it via:

&lt;?php echo number_format(facebook_count('Fan_Page_ID') ); ?&gt;


Hope this helps!