PHP – Get Facebook Comment Count for a Page

Here is a simple function to get the amount of comments a page has.  Simply pass the full URL of the page you want the comments for. function fb_comment_count($url) { $json = json_decode(file_get_contents(‘https://graph.facebook.com/?ids=’ . $url));…

View →