Recent Facebook Posts - Version 2.0.2

Version Description

  • September 17, 2014 =

Fixes

  • Removed duplicate picture in call to Facebook API. Fixes a "Syntax error" in later API versions. Props danielfharmonic.
Download this release

Release Info

Developer DvanKooten
Plugin Icon wp plugin Recent Facebook Posts
Version 2.0.2
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.2

includes/class-api.php CHANGED
@@ -41,9 +41,9 @@ class RFBP_API {
41
  public function get_posts()
42
  {
43
  $result = $this->call("{$this->fb_id}/posts", array(
44
- 'fields' => 'id,picture,type,from,message,status_type,object_id,picture,name,caption,description,link,created_time,comments.limit(1).summary(true),likes.limit(1).summary(true)'
45
  ));
46
-
47
  if( is_object( $result ) ) {
48
  if( isset( $result->data ) ) {
49
  return $this->format_data( $result->data );
41
  public function get_posts()
42
  {
43
  $result = $this->call("{$this->fb_id}/posts", array(
44
+ 'fields' => 'id,picture,type,from,message,status_type,object_id,name,caption,description,link,created_time,comments.limit(1).summary(true),likes.limit(1).summary(true)'
45
  ));
46
+
47
  if( is_object( $result ) ) {
48
  if( isset( $result->data ) ) {
49
  return $this->format_data( $result->data );
includes/views/settings_page.html.php CHANGED
@@ -8,7 +8,7 @@
8
  <?php if( isset( $notice ) ) { ?>
9
  <div id="setting-error-settings_updated" class="updated settings-error">
10
  <p>
11
- <?php echo esc_html( $notice ); ?>
12
  </p>
13
  </div>
14
  <?php } ?>
8
  <?php if( isset( $notice ) ) { ?>
9
  <div id="setting-error-settings_updated" class="updated settings-error">
10
  <p>
11
+ <?php echo trim( wp_kses_post( $notice ) ); ?>
12
  </p>
13
  </div>
14
  <?php } ?>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://dannyvankooten.com/donate/
4
  Tags: facebook,posts,fanpage,recent posts,fb,like box alternative,widget,facebook widget,widgets,facebook updates,like button,fb posts
5
  Requires at least: 3.5
6
  Tested up to: 4.0
7
- Stable tag: 2.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -29,9 +29,11 @@ Display a list of your most recent Facebook posts in your posts or pages using t
29
  * Translation ready!
30
 
31
  **Translations**
32
- English (en_US) - [Danny van Kooten](http://dannyvankooten.com/)
33
- Dutch (nl_NL) - [Danny van Kooten](http://dannyvankooten.com/)
34
- Looking for more translations..
 
 
35
 
36
  If you have [created your own language pack](http://codex.wordpress.org/Translating_WordPress), you can send me the language files so that I can bundle it into the Recent Facebook Posts plugin. [You can download the latest PO file here](http://plugins.svn.wordpress.org/recent-facebook-posts/trunk/languages/recent-facebook-posts.po).
37
 
@@ -148,6 +150,12 @@ add_filter('rfbp_cache_time', 'my_rfbp_cache_time');
148
 
149
  == Changelog ==
150
 
 
 
 
 
 
 
151
  = 2.0.1 - September 15, 2014 =
152
 
153
  **Improvements**
4
  Tags: facebook,posts,fanpage,recent posts,fb,like box alternative,widget,facebook widget,widgets,facebook updates,like button,fb posts
5
  Requires at least: 3.5
6
  Tested up to: 4.0
7
+ Stable tag: 2.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
29
  * Translation ready!
30
 
31
  **Translations**
32
+
33
+ English (en_US) - [Danny van Kooten](http://dannyvankooten.com/)<br />
34
+ Dutch (nl_NL) - [Danny van Kooten](http://dannyvankooten.com/)<br />
35
+
36
+ _Looking for more translations.._
37
 
38
  If you have [created your own language pack](http://codex.wordpress.org/Translating_WordPress), you can send me the language files so that I can bundle it into the Recent Facebook Posts plugin. [You can download the latest PO file here](http://plugins.svn.wordpress.org/recent-facebook-posts/trunk/languages/recent-facebook-posts.po).
39
 
150
 
151
  == Changelog ==
152
 
153
+ = 2.0.2 - September 17, 2014 =
154
+
155
+ **Fixes**
156
+
157
+ - Removed duplicate `picture` in call to Facebook API. Fixes a "Syntax error" in later API versions. Props [danielfharmonic](https://github.com/danielfharmonic).
158
+
159
  = 2.0.1 - September 15, 2014 =
160
 
161
  **Improvements**
recent-facebook-posts.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Recent Facebook Posts
4
  Plugin URI: http://dannyvankooten.com/wordpress-plugins/recent-facebook-posts/
5
  Description: Lists most recent posts from a public Facebook page.
6
- Version: 2.0.1
7
  Author: Danny van Kooten
8
  Author URI: http://dannyvankooten.com/
9
  Text Domain: recent-facebook-posts
@@ -32,7 +32,7 @@ if( ! defined( 'ABSPATH' ) ) {
32
  }
33
 
34
  // Plugin Constants
35
- define( 'RFBP_VERSION', '2.0.1' );
36
  define( 'RFBP_PLUGIN_DIR', dirname( __FILE__ ) . '/' );
37
 
38
  /**
3
  Plugin Name: Recent Facebook Posts
4
  Plugin URI: http://dannyvankooten.com/wordpress-plugins/recent-facebook-posts/
5
  Description: Lists most recent posts from a public Facebook page.
6
+ Version: 2.0.2
7
  Author: Danny van Kooten
8
  Author URI: http://dannyvankooten.com/
9
  Text Domain: recent-facebook-posts
32
  }
33
 
34
  // Plugin Constants
35
+ define( 'RFBP_VERSION', '2.0.2' );
36
  define( 'RFBP_PLUGIN_DIR', dirname( __FILE__ ) . '/' );
37
 
38
  /**