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

REST API is deprecated
(1 viewing) (1) Guest
Read user-guide, report bugs and discuss more
  • Page:
  • 1

TOPIC: REST API is deprecated

REST API is deprecated 8 years, 3 months ago #28994

Hi,

18 August, the REST API for Facebook was déprecated. Return 0


 private static function getFacebookLike($params)
    {
        $url = $params->get('facebook_url');
        $url = urlencode($url);
        $json_string = @file_get_contents('http://api.facebook.com/restserver.php?method=links.getStats&format=json&urls=' . $url);
        $json = json_decode($json_string, true);
        $like_count = isset($json['0']) && $json['0']['like_count'] ? $json['0']['like_count'] : 0;
        return $like_count;

    }

Re: REST API is deprecated 8 years, 3 months ago #29030

Support ? No support ?

Re: REST API is deprecated 8 years, 3 months ago #29031

  • thuygtn
Hi all,

We have updated new version 1.1.1 that fixed this issue, you can download and reinstall it again.

Thanks

Re: REST API is deprecated 8 years, 3 months ago #29037

Hi , i have download the 1.1.1 , it's ok ... But ...

If there is no reponse from facebook or twitter ... the website crash.

There is a fatal error :
Catchable fatal error: Object of class stdClass could not be converted to string in /var/www/vhosts/config-gamer.fr/public_html/modules/mod_sj_social_media_counter/tmpl/default.php on line 28

Re: REST API is deprecated 8 years, 2 months ago #29077

Help, i can't use this module, i have a fatal error when he is activate.

Catchable fatal error: Object of class stdClass could not be converted to string in /var/www/vhosts/config-gamer.fr/public_html/modules/mod_sj_social_media_counter/tmpl/default.php on line 28
  • Page:
  • 1
Time to create page: 0.22 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