Facebook like or share count from another page

instead of requesting facebook for data, I would like to parse web pages, but the problem is that facebook data is loaded on the client side with ajax calls, so I think I can't get the first request on the web page. Is there a way to get facebook likes or shares on a page without fb request?

I would like to parse web pages somehow from PHP and just check here, but that is not what I want: link

EDIT

What I have tried:

<?php
    $source_url = "https://www.facebook.com/pages/%D0%9F%D1%83%D0%BB%D1%81%D0%B0%D1%80/177521286028";

    $fql  = "SELECT url, normalized_url, share_count, like_count, comment_count, ";
    $fql .= "total_count, commentsbox_count, comments_fbid, click_count FROM ";
    $fql .= "link_stat WHERE url = 'http://pulsar.com.mk'";

    $apifql="https://api.facebook.com/method/fql.query?format=json&query=".urlencode($fql);
    $json = file_get_contents($apifql);
?>

      

+3


source to share


1 answer


You can try using simpleXML http://www.php.net/manual/en/simplexml.examples-basic.php



0


source







All Articles