If your website or blog has an internal link Facebook page, you may want to know how many fans you have. The following php will help you check the number of Facebook fans:
If your website or blog has an internal link Facebook page, you may want to know how many fans you have. The following php will help you check the number of Facebook fans:
If your website or blog has an internal link Facebook page, you may want to know how many fans you have. This code will help you check the number of Facebook fans. Remember, don't forget to add this code in the second line of your page ID.
The Code is as follows:
$ Page_id = "your page-ID ";
$ Xml = @ simplexml_load_file ("http://api.facebook.com/restserver.php? Method = facebook. fql. query & query = Select % 20fan_count % 20 FROM % 20 page % 20 Where % 20page_id = ". $ page_id. "") or die ("a lot ");
$ Fans = $ xml-> page-> fan_count;
Echo $ fans;
?>
,