Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

Facebook counter not display
(1 viewing) (1) Guest
Read user-guide, report bugs and discuss more
  • Page:
  • 1

TOPIC: Facebook counter not display

Facebook counter not display 5 years, 4 months ago #37819

  • georgios
  • OFFLINE
  • Single Product
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hello,

I try to add Facebook URL (for example www.facebook.com/Google).

But counter is always with 0 like.

Have you any ideas about?

Thanks

Re: Facebook counter not display 5 years, 3 months ago #37891

georgios wrote:
Hello,

I try to add Facebook URL (for example www.facebook.com/Google).

But counter is always with 0 like.

Have you any ideas about?

Thanks

Re: Facebook counter not display 4 years, 4 months ago #40011

I get the same....always zero

Re: Facebook counter not display 4 years, 4 months ago #40080

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
  • Page:
  • 1
Time to create page: 0.21 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes