in reply to how to calculate the facebook like in perl cgi

What does that mean?

I have seen code but all require me to use Php.

What code?

  • Comment on Re: how to calculate the facebook like in perl cgi

Replies are listed 'Best First'.
Re^2: how to calculate the facebook like in perl cgi
by romy_mathew (Beadle) on Jun 17, 2011 at 15:44 UTC
    I have found this piece of code in a blog http://blogs.coldbuffer.com/how-to-get-facebook-fan-count I would like to do the same in perl

    ?php

    require_once('facebook.php');

    $facebook = new Facebook(array( 'appId' => 'your_app_id', 'secret' => 'your_app_secret', 'cookie' => true, ));

    $result = $facebook->api(array( 'method' => 'fql.query', 'query' => 'select fan_count from page where page_id = your_page_id;' ));

    $fb_fans = $result[0]'fan_count';

    ?>

        Thanks for the Post saw an article in O'Reilly

        http://answers.oreilly.com/topic/1595-how-to-measure-facebook-activity-with-the-facebook-api-and-perl/

        Am very new in perl and I tat code in the link actually giving error in my test file could you mind checking let us know if that actually work

        My main Idea is to get the like count i set up in my website

Re^2: how to calculate the facebook like in perl cgi
by ww (Archbishop) on Jun 18, 2011 at 00:39 UTC
    OP revised post without notice; has been childed for doing so. AM's answer was directly responsive to OP's original content.