Category Archives : PHP

PHP Display Counter for Facebook Likes, Shares, Comments

Ever wanted to display Facebook’s Likes, Shares, or Comments just as a numerical counter? Well now you can with this simple PHP tutorial. With Facebook’s Legacy FQL API: <?php //The following code returns number of likes, shares, and comments for any Facebook page. function facebook_count($url) { // Query in FQL $fql = “SELECT share_count, like_count, […]