Witam serdecznie
mam taki skrypt
<?php function fbLikeCount($id,$appid,$appsecret){ $json_url ='https://graph.facebook.com/'.$id.'?access_token='.$appid.'|'.$appsecret.'&fields=fan_count'; $json = http://www.php.net/file_get_contents($json_url); $json_output = json_decode($json); //Extract the likes count from the JSON object if($json_output->fan_count){ return $fan_count = $json_output->fan_count; }else{ return 0; } } http://www.php.net/echo fbLikeCount('tutajwklejamidstrony','tutajwklejamappid','tutajwklejamappsecret'); ?>
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)