You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.
Since August 7, 2016 > REST API is deprecated for versions v2.1 and higher (12)
To fix this bug :
For the case self::SN_FACEBOOK:
Replace : $api_url = "http://api.facebook.com/restserver.php?v=1.0&method=links.getStats&urls=" . urlencode($url) . "&format=json";
By : $api_url = "http://graph.facebook.com/?id=" . urlencode($url);
AND
Replace : if (isset($json[0]['total_count'])) { $result = intval($json[0]['total_count']); }
By : if (isset($json['share']['share_count'])) { $result = intval($json['share']['share_count']); }
Have a nice day :)
The text was updated successfully, but these errors were encountered:
Since August 7, 2016 >
REST API is deprecated for versions v2.1 and higher (12)
To fix this bug :
For the
case self::SN_FACEBOOK:
Replace :
$api_url = "http://api.facebook.com/restserver.php?v=1.0&method=links.getStats&urls=" . urlencode($url) . "&format=json";
By :
$api_url = "http://graph.facebook.com/?id=" . urlencode($url);
AND
Replace :
if (isset($json[0]['total_count'])) { $result = intval($json[0]['total_count']); }
By :
if (isset($json['share']['share_count'])) { $result = intval($json['share']['share_count']); }
Have a nice day :)
The text was updated successfully, but these errors were encountered: