in reply to Re: how to calculate the facebook like in perl cgi
in thread how to calculate the facebook like in perl cgi
?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';
?>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to calculate the facebook like in perl cgi
by Anonymous Monk on Jun 17, 2011 at 15:59 UTC | |
by romy_mathew (Beadle) on Jun 17, 2011 at 16:45 UTC | |
by Anonymous Monk on Jun 18, 2011 at 09:09 UTC |