Hello,
modules\mod_sj_social_media_counter\core\helper.php
private static function getFacebookLike($params){
$id = $params->get('facebook_url');
$appid = $params->get('appid');
$appsecret = $params->get('appsecret');
$json_url ='https://graph.facebook.com/'.$id.'?access_token='.$appid.'|'.$appsecret.'&fields=fan_count';
$json = file_get_contents($json_url);
$json_output = json_decode($json);
$like_count = isset($json_output->fan_count) ? $json_output->fan_count : 0;
return $like_count;
}
set number count of fanpage
$like_count = isset($json_output->fan_count) ? $json_output->fan_count : 0;
Thanks