Kiwi Social Share – Social Media Share Buttons & Icons - Version 2.0.15

Version Description

  • Facebook share counts no longer work without a Facebook Developer App (https://developers.facebook.com/apps). Options to support connection via Facebook App are added in WP Admin > Kiwi > Social Identity. The options are "Facebook App Id" and "Facebook App Secret"
Download this release

Release Info

Developer wpkube
Plugin Icon wp plugin Kiwi Social Share – Social Media Share Buttons & Icons
Version 2.0.15
Comparing to
See all releases

Code changes from version 2.0.14 to 2.0.15

includes/backend/parts/kiwi-tab-social-identity.php CHANGED
@@ -22,8 +22,19 @@ if ( ! defined( 'ABSPATH' ) ) {
22
  value="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'facebook_page_url', '', 'kiwi_social_identities' ) ); ?>"/>
23
  </div>
24
  <div class="clearfix">
25
- <label for="kiwi-facebook-app-id"> <?php echo esc_html__( 'Facebook App Id', 'kiwi-social-share' ); ?> </label>
 
 
 
26
  <input type="text" id="kiwi-facebook-app-id" name="kiwi_social_identities[facebook_app_id]"
27
  value="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'facebook_app_id', '', 'kiwi_social_identities' ) ); ?>"/>
28
  </div>
 
 
 
 
 
 
 
 
29
  </div>
22
  value="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'facebook_page_url', '', 'kiwi_social_identities' ) ); ?>"/>
23
  </div>
24
  <div class="clearfix">
25
+ <label for="kiwi-facebook-app-id">
26
+ <?php echo esc_html__( 'Facebook App Id', 'kiwi-social-share' ); ?>
27
+ <br><small><?php echo esc_html__( 'Required for FB share counts.', 'kiwi-social-share' ); ?></small>
28
+ </label>
29
  <input type="text" id="kiwi-facebook-app-id" name="kiwi_social_identities[facebook_app_id]"
30
  value="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'facebook_app_id', '', 'kiwi_social_identities' ) ); ?>"/>
31
  </div>
32
+ <div class="clearfix">
33
+ <label for="kiwi-facebook-app-secret">
34
+ <?php echo esc_html__( 'Facebook App Secret', 'kiwi-social-share' ); ?>
35
+ <br><small><?php echo esc_html__( 'Required for FB share counts.', 'kiwi-social-share' ); ?></small>
36
+ </label>
37
+ <input type="text" id="kiwi-facebook-app-secret" name="kiwi_social_identities[facebook_app_secret]"
38
+ value="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'facebook_app_secret', '', 'kiwi_social_identities' ) ); ?>"/>
39
+ </div>
40
  </div>
includes/frontend/social-buttons/class-kiwi-social-share-social-button-facebook.php CHANGED
@@ -14,8 +14,7 @@ final class Kiwi_Social_Share_Social_Button_Facebook extends Kiwi_Social_Share_S
14
  parent::__construct();
15
  $this->platform = 'facebook';
16
  $this->url = $this->build_url();
17
-
18
- $this->api_url = 'http://graph.facebook.com/?id=' . rawurlencode( $this->get_current_page_url( $this->post_id ) );
19
  }
20
 
21
  /**
@@ -43,10 +42,30 @@ final class Kiwi_Social_Share_Social_Button_Facebook extends Kiwi_Social_Share_S
43
  public function parse_api_response( $response ) {
44
  $response = json_decode( $response['body'], true );
45
 
46
- if ( empty( $response['share'] ) ) {
47
  return false;
48
  }
49
 
50
- return $response['share']['share_count'];
 
 
 
 
 
 
 
 
 
 
51
  }
 
 
 
 
 
 
 
 
 
 
52
  }
14
  parent::__construct();
15
  $this->platform = 'facebook';
16
  $this->url = $this->build_url();
17
+ $this->api_url = 'https://graph.facebook.com/?id=' . rawurlencode( $this->get_current_page_url( $this->post_id ) ) . '&fields=engagement&access_token=' . $this->get_app_id() . '|' . $this->get_app_secret();
 
18
  }
19
 
20
  /**
42
  public function parse_api_response( $response ) {
43
  $response = json_decode( $response['body'], true );
44
 
45
+ if ( empty( $response['engagement'] ) ) {
46
  return false;
47
  }
48
 
49
+ return $response['engagement']['share_count'];
50
+
51
+ }
52
+
53
+ /**
54
+ * Get Facebook App ID
55
+ *
56
+ * @return string
57
+ */
58
+ public function get_app_id() {
59
+ return esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'facebook_app_id', '', 'kiwi_social_identities' ) );
60
  }
61
+
62
+ /**
63
+ * Get Facebook App Secret
64
+ *
65
+ * @return string
66
+ */
67
+ public function get_app_secret() {
68
+ return esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'facebook_app_secret', '', 'kiwi_social_identities' ) );
69
+ }
70
+
71
  }
includes/frontend/social-buttons/class-kiwi-social-share-social-button.php CHANGED
@@ -118,7 +118,7 @@ abstract class Kiwi_Social_Share_Social_Button {
118
 
119
  if ( empty( $response['body'] ) ) {
120
  return false;
121
- }
122
 
123
  return $this->parse_api_response( $response );
124
  }
118
 
119
  if ( empty( $response['body'] ) ) {
120
  return false;
121
+ }
122
 
123
  return $this->parse_api_response( $response );
124
  }
includes/lib/cmb2/cmb2-old.rar DELETED
Binary file
kiwi-social-share.php CHANGED
@@ -1,17 +1,37 @@
1
  <?php
2
  /*
3
  * Plugin Name: Kiwi Social Share - Social Media Share Buttons & Icons
4
- * Version: 2.0.14
5
- * Plugin URI: https://www.machothemes.com/item/kiwi-social-share
6
  * Description: Really beautiful & simple social media & share buttons + icons. Simplicity & speed is key with this social media share plugin.
7
- * Author: MachoThemes
8
- * Author URI: https://www.machothemes.com
9
  * Requires at least: 4.0
10
  * Tested up to: 5.0
11
  *
12
  * Text Domain: kiwi-social-share
13
  * Domain Path: /languages/
14
  *
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  * @package WordPress
16
  * @author Macho Themes
17
  * @since 1.0.0
@@ -38,7 +58,7 @@ require_once 'includes/class-kiwi-social-share-autoloader.php';
38
  * @return object Kiwi_Social_Share
39
  */
40
  function Kiwi_Social_Share() {
41
- $instance = Kiwi_Social_Share::instance( __FILE__, '2.0.14' );
42
 
43
  if ( is_null( $instance->settings ) ) {
44
  $instance->settings = Kiwi_Social_Share_Settings::instance( $instance );
1
  <?php
2
  /*
3
  * Plugin Name: Kiwi Social Share - Social Media Share Buttons & Icons
4
+ * Version: 2.0.15
 
5
  * Description: Really beautiful & simple social media & share buttons + icons. Simplicity & speed is key with this social media share plugin.
6
+ * Author: WPKube
7
+ * Author URI: https://www.wpkube.com/
8
  * Requires at least: 4.0
9
  * Tested up to: 5.0
10
  *
11
  * Text Domain: kiwi-social-share
12
  * Domain Path: /languages/
13
  *
14
+ * Copyright 2018-2019 MachoThemes office@machothemes.com
15
+ * Copyright 2019 WPKube wpkube@gmail.com
16
+ *
17
+ * NOTE:
18
+ * MachoThemes ownership rights were ceased on: 02/02/2019 when ownership was turned over to WPKube
19
+ * WPKube ownership started on: 02/02/2019
20
+ *
21
+ * This program is free software; you can redistribute it and/or modify
22
+ * it under the terms of the GNU General Public License as published by
23
+ * the Free Software Foundation; either version 3 of the License, or
24
+ * (at your option) any later version.
25
+ *
26
+ * This program is distributed in the hope that it will be useful,
27
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
28
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29
+ * GNU General Public License for more details.
30
+ *
31
+ * You should have received a copy of the GNU General Public License
32
+ * along with this program; if not, write to the Free Software
33
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
34
+ *
35
  * @package WordPress
36
  * @author Macho Themes
37
  * @since 1.0.0
58
  * @return object Kiwi_Social_Share
59
  */
60
  function Kiwi_Social_Share() {
61
+ $instance = Kiwi_Social_Share::instance( __FILE__, '2.0.15' );
62
 
63
  if ( is_null( $instance->settings ) ) {
64
  $instance->settings = Kiwi_Social_Share_Settings::instance( $instance );
readme.txt CHANGED
@@ -1,24 +1,25 @@
1
  === Social Sharing Plugin - Kiwi ===
2
 
3
- Contributors: machothemes, silkalns
4
- Tags: social media button, social share button, social floating bar, social share bar, facebook share, social sharing icons, twitter share, woocommerce sharing, share buttons, pinterest share, google plus share, social share counters
5
  Requires at least: 3.8
6
- Tested up to: 5.0
7
- Stable tag: 2.0.14
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
11
  This is by far the best free WordPress share plugin. It is simple yet does exactly what it should with plenty of customisation options.
 
12
  == Description ==
13
 
14
- **Kiwi Social Share** is a standalone plugin built, maintained & operated by the friendly folks over at [MachoThemes](https://www.machothemes.com/)
15
 
16
  This is by far the best & easiest to use WordPress social media share plugin. A WordPress share plugin with custom icons built-in.
17
 
18
 
19
  = Plugin Options =
20
 
21
- * Social networks available: Facebook, Twitter, LinkedIN, Pinterest, Google Plus and Flint.
22
  * Turn on/off each of them, individually.
23
  * Great UI with intuitive & simple options.
24
  * Built for the regular user.
@@ -37,14 +38,13 @@ This is by far the best & easiest to use WordPress social media share plugin. A
37
  * Display social icons: before content, after content or both.
38
  * Amazing loading speed.
39
 
40
- = WordPress Social Media Widget (for website) =
41
-
42
- A WordPress Social Media Widget solution is coming soon, stay tuned.
43
 
44
- **About us:**
45
-
46
- We are a young team of WordPress aficionados who love building WordPress plugins & <a href="https://www.machothemes.com/" target="_blank" title="Premium WordPress themes">Premium WordPress themes</a> over on our theme shop. We’re also blogging and wish to help our users find the best <a href="https://www.machothemes.com/blog/cheapest-wordpress-hosting/" target="_blank" title="Cheap WordPress Hosting">Cheap WordPress hosting</a> & the best <a href="https://www.machothemes.com/blog/best-free-wordpress-bootstrap-themes/" title="Bootstrap WordPress themes" target="_blank">Bootstrap WordPress Themes</a>.
47
 
 
 
 
48
 
49
  == Installation ==
50
 
@@ -78,7 +78,10 @@ Floating Bar Filters
78
 
79
  == Changelog ==
80
 
81
- = 2.014 =
 
 
 
82
  * Remove uninstall feedback
83
 
84
  = 2.0.13 =
1
  === Social Sharing Plugin - Kiwi ===
2
 
3
+ Contributors: wpkube
4
+ Tags: social media button, social share button, social floating bar, social share bar, facebook share, social sharing icons, twitter share, woocommerce sharing, share buttons, pinterest share, social share counters
5
  Requires at least: 3.8
6
+ Tested up to: 5.2
7
+ Stable tag: 2.0.15
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
11
  This is by far the best free WordPress share plugin. It is simple yet does exactly what it should with plenty of customisation options.
12
+
13
  == Description ==
14
 
15
+ **Kiwi Social Share** is a standalone plugin built, maintained & operated by the friendly folks over at [WPKube](https://www.wpkube.com/)
16
 
17
  This is by far the best & easiest to use WordPress social media share plugin. A WordPress share plugin with custom icons built-in.
18
 
19
 
20
  = Plugin Options =
21
 
22
+ * Social networks available: Facebook, Twitter, LinkedIN, Pinterest and Flint.
23
  * Turn on/off each of them, individually.
24
  * Great UI with intuitive & simple options.
25
  * Built for the regular user.
38
  * Display social icons: before content, after content or both.
39
  * Amazing loading speed.
40
 
41
+ = What's Next? =
 
 
42
 
43
+ If you like this plugin, then please consider leaving us a rating / review. This plugin is completely free and maintained by [WPKube](https://www.wpkube.com), a WordPress resource site, where you can learn from our free WordPress tutorials like [how to choose the right managed WordPress hosting](https://www.wpkube.com/best-managed-wordpress-hosting/), [how to install WordPress](https://www.wpkube.com/install-wordpress/), [choose the best shared hosting](https://www.wpkube.com/best-wordpress-hosting/), and [more](https://www.wpkube.com/category/wordpress-tutorials/).
 
 
44
 
45
+ Our other projects:
46
+ - [MeridianThemes](https://www.meridianthemes.net) - Beautiful hand-crafted themes for WordPress
47
+ - [Optin Forms](http://optinforms.io) - Simple and easy to use plugin for creating optin forms, works with most well know autoresponder services.
48
 
49
  == Installation ==
50
 
78
 
79
  == Changelog ==
80
 
81
+ = 2.0.15 =
82
+ * Facebook share counts no longer work without a Facebook Developer App (https://developers.facebook.com/apps). Options to support connection via Facebook App are added in WP Admin > Kiwi > Social Identity. The options are "Facebook App Id" and "Facebook App Secret"
83
+
84
+ = 2.0.14 =
85
  * Remove uninstall feedback
86
 
87
  = 2.0.13 =