Custom Facebook Feed - Version 2.1.3

Version Description

  • Fix: Fixed an issue with the Facebook Access Token used in the plugin hitting its request limit
Download this release

Release Info

Developer smashballoon
Plugin Icon 128x128 Custom Facebook Feed
Version 2.1.3
Comparing to
See all releases

Code changes from version 2.1.1 to 2.1.3

Files changed (2) hide show
  1. README.txt +7 -1
  2. custom-facebook-feed.php +16 -3
README.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: smashballoon
3
  Tags: Facebook, Facebook feed, Facebook posts, Facebook wall, Facebook events, Facebook page, Facebook group, Facebook Like box, Customizable Facebook Feed, custom, customizable, seo, responsive, mobile, social media
4
  Requires at least: 3.0
5
  Tested up to: 4.0
6
- Stable tag: 2.1.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -271,6 +271,12 @@ Credit iMarketing Factory - "The Importance of Facebook for Small Businesses"
271
  9. It's super easy to display your Facebook feed in any page or post
272
 
273
  == Changelog ==
 
 
 
 
 
 
274
  = 2.1.1 =
275
  * Fix: Fixed an issue with the date not being hidden when unchecked in the Show/Hide section
276
  * Fix: Fixed an issue with the date not being displayed below event posts when the date position was set to 'At the bottom of the post'
3
  Tags: Facebook, Facebook feed, Facebook posts, Facebook wall, Facebook events, Facebook page, Facebook group, Facebook Like box, Customizable Facebook Feed, custom, customizable, seo, responsive, mobile, social media
4
  Requires at least: 3.0
5
  Tested up to: 4.0
6
+ Stable tag: 2.1.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
271
  9. It's super easy to display your Facebook feed in any page or post
272
 
273
  == Changelog ==
274
+ = 2.1.3 =
275
+ * Fix: Fixed an issue with the Facebook Access Token used in the plugin hitting its request limit
276
+
277
+ = 2.1.2 =
278
+ * Fix: Added in a missing closing div tag to the feed when an error is being displayed
279
+
280
  = 2.1.1 =
281
  * Fix: Fixed an issue with the date not being hidden when unchecked in the Show/Hide section
282
  * Fix: Fixed an issue with the date not being displayed below event posts when the date position was set to 'At the bottom of the post'
custom-facebook-feed.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Custom Facebook Feed
4
  Plugin URI: http://smashballoon.com/custom-facebook-feed
5
  Description: Add a completely customizable Facebook feed to your WordPress site
6
- Version: 2.1.1
7
  Author: Smash Balloon
8
  Author URI: http://smashballoon.com/
9
  License: GPLv2 or later
@@ -506,7 +506,18 @@ function display_cff($atts) {
506
  get_option('cff_show_access_token') ? $cff_show_access_token = true : $cff_show_access_token = false;
507
 
508
  //If there's no Access Token then use the default
509
- if ($access_token == '' || !$cff_show_access_token) $access_token = '1436737606570258|MGh1BX4_b_D9HzJtKe702cwMRPI';
 
 
 
 
 
 
 
 
 
 
 
510
  //Check whether a Page ID has been defined
511
  if ($page_id == '') {
512
  echo "Please enter the Page ID of the Facebook feed you'd like to display. You can do this in either the Custom Facebook Feed plugin settings or in the shortcode itself. For example, [custom-facebook-feed id=YOUR_PAGE_ID_HERE].<br /><br />";
@@ -684,7 +695,9 @@ function display_cff($atts) {
684
 
685
  if( empty($FBdata->error) && empty($FBdata->error_msg) && $FBdata !== null ) $cff_content .= 'Error: No posts available for this Facebook ID';
686
 
687
- $cff_content .= '<br />Please refer to our <a href="https://smashballoon.com/custom-facebook-feed/docs/errors/" target="_blank">Error Message Reference</a>.</div>';
 
 
688
 
689
  return $cff_content;
690
  }
3
  Plugin Name: Custom Facebook Feed
4
  Plugin URI: http://smashballoon.com/custom-facebook-feed
5
  Description: Add a completely customizable Facebook feed to your WordPress site
6
+ Version: 2.1.3
7
  Author: Smash Balloon
8
  Author URI: http://smashballoon.com/
9
  License: GPLv2 or later
506
  get_option('cff_show_access_token') ? $cff_show_access_token = true : $cff_show_access_token = false;
507
 
508
  //If there's no Access Token then use the default
509
+ // if ($access_token == '' || !$cff_show_access_token) $access_token = '1436737606570258|MGh1BX4_b_D9HzJtKe702cwMRPI';
510
+ $access_token_array = array(
511
+ '1489500477999288|KFys5ppNi3sreihdreqPkU2ChIE',
512
+ '859332767418162|BR-YU8zjzvonNrszlll_1a4y_xE',
513
+ '360558880785446|4jyruti_VkxxK7gS7JeyX-EuSXs',
514
+ '1487072591579718|0KQzP-O2E4mvFCPxTLWP1b87I4Q',
515
+ '640861236031365|2rENQzxtWtG12DtlZwqfZ6Vu6BE'
516
+ );
517
+ if ($access_token == '' || !$cff_show_access_token) $access_token = $access_token_array[rand(0, 4)];
518
+
519
+
520
+
521
  //Check whether a Page ID has been defined
522
  if ($page_id == '') {
523
  echo "Please enter the Page ID of the Facebook feed you'd like to display. You can do this in either the Custom Facebook Feed plugin settings or in the shortcode itself. For example, [custom-facebook-feed id=YOUR_PAGE_ID_HERE].<br /><br />";
695
 
696
  if( empty($FBdata->error) && empty($FBdata->error_msg) && $FBdata !== null ) $cff_content .= 'Error: No posts available for this Facebook ID';
697
 
698
+ $cff_content .= '<br />Please refer to our <a href="http://smashballoon.com/custom-facebook-feed/docs/errors/" target="_blank">Error Message Reference</a>.';
699
+ $cff_content .= '</div></div>'; //End .cff-error-msg and #cff-error-reason
700
+ $cff_content .= '</div></div>'; //End #cff and .cff-wrapper
701
 
702
  return $cff_content;
703
  }