Version Description
- Fixed the Facebook followers count issue for Facebook APP API version 2.5 and above.
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Counter for WordPress – AccessPress Social Counter |
Version | 1.5.8 |
Comparing to | |
See all releases |
Code changes from version 1.5.7 to 1.5.8
- accesspress-social-counter.php +6 -6
- readme.txt +4 -1
accesspress-social-counter.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: AccessPress Social Counter
|
4 |
* Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/
|
5 |
* Description: A plugin to display your social accounts fans, subscribers and followers number on your website with handful of backend settings and interface.
|
6 |
-
* Version: 1.5.
|
7 |
* Author: AccessPress Themes
|
8 |
* Author URI: http://accesspressthemes.com
|
9 |
* Text Domain: aps-counter
|
@@ -24,7 +24,7 @@ if (!defined('SC_CSS_DIR')) {
|
|
24 |
define('SC_CSS_DIR', plugin_dir_url(__FILE__) . 'css');
|
25 |
}
|
26 |
if (!defined('SC_VERSION')) {
|
27 |
-
define('SC_VERSION', '1.5.
|
28 |
}
|
29 |
/**
|
30 |
* Register of widgets
|
@@ -430,9 +430,9 @@ if (!class_exists('SC_Class')) {
|
|
430 |
function new_fb_count(){
|
431 |
$apsc_settings = $this->apsc_settings;
|
432 |
$access_token = $this->get_fb_access_token( );
|
433 |
-
$api_url = 'https://graph.facebook.com/';
|
434 |
$url = sprintf(
|
435 |
-
'%s%s?fields=
|
436 |
$api_url,
|
437 |
$apsc_settings['social_profile']['facebook']['page_id'] ,
|
438 |
$access_token
|
@@ -445,8 +445,8 @@ if (!class_exists('SC_Class')) {
|
|
445 |
} else {
|
446 |
$_data = json_decode( $connection['body'], true );
|
447 |
|
448 |
-
if ( isset( $_data['
|
449 |
-
$count = intval( $_data['
|
450 |
|
451 |
$total = $count;
|
452 |
} else {
|
3 |
* Plugin Name: AccessPress Social Counter
|
4 |
* Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/
|
5 |
* Description: A plugin to display your social accounts fans, subscribers and followers number on your website with handful of backend settings and interface.
|
6 |
+
* Version: 1.5.8
|
7 |
* Author: AccessPress Themes
|
8 |
* Author URI: http://accesspressthemes.com
|
9 |
* Text Domain: aps-counter
|
24 |
define('SC_CSS_DIR', plugin_dir_url(__FILE__) . 'css');
|
25 |
}
|
26 |
if (!defined('SC_VERSION')) {
|
27 |
+
define('SC_VERSION', '1.5.8');
|
28 |
}
|
29 |
/**
|
30 |
* Register of widgets
|
430 |
function new_fb_count(){
|
431 |
$apsc_settings = $this->apsc_settings;
|
432 |
$access_token = $this->get_fb_access_token( );
|
433 |
+
$api_url = 'https://graph.facebook.com/v2.6/';
|
434 |
$url = sprintf(
|
435 |
+
'%s%s?fields=fan_count&%s',
|
436 |
$api_url,
|
437 |
$apsc_settings['social_profile']['facebook']['page_id'] ,
|
438 |
$access_token
|
445 |
} else {
|
446 |
$_data = json_decode( $connection['body'], true );
|
447 |
|
448 |
+
if ( isset( $_data['fan_count'] ) ) {
|
449 |
+
$count = intval( $_data['fan_count'] );
|
450 |
|
451 |
$total = $count;
|
452 |
} else {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: social count, social counter, social counters, social media counters, soci
|
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -125,6 +125,9 @@ Once you install the plugin , you can check some general documentation about how
|
|
125 |
5. Backend Cache Settings Section
|
126 |
|
127 |
== Changelog ==
|
|
|
|
|
|
|
128 |
= 1.5.7 =
|
129 |
* Fixed the instagram followers count issues.
|
130 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 1.5.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
125 |
5. Backend Cache Settings Section
|
126 |
|
127 |
== Changelog ==
|
128 |
+
= 1.5.8 =
|
129 |
+
* Fixed the Facebook followers count issue for Facebook APP API version 2.5 and above.
|
130 |
+
|
131 |
= 1.5.7 =
|
132 |
* Fixed the instagram followers count issues.
|
133 |
|