Custom Facebook Feed - Version 2.3.9

Version Description

  • Fix: Fixed an issue caused by the recent Facebook API 2.5 update where the posts wouldn't display when using a brand new Access Token
Download this release

Release Info

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

Code changes from version 2.3.8 to 2.3.9

Files changed (2) hide show
  1. README.txt +4 -1
  2. custom-facebook-feed.php +16 -10
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 groups, Facebook fans, Facebook likes, Facebook followers, Facebooks, Face book, posts, Facebook postings, Facebook feeds, Facebook pages, Facebook Like Box, Facebook plugin, Facebook plug-in, Facebook walls, Facebook hashtag, Facebook embed, Customizable Facebook Feed, custom, customizable, seo, responsive, mobile, social media
4
Requires at least: 3.0
5
Tested up to: 4.3.1
6
- Stable tag: 2.3.8
7
License: GPLv2 or later
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
@@ -361,6 +361,9 @@ Credit iMarketing Factory - "The Importance of Facebook for Small Businesses"
361
9. It's super easy to display your Facebook feed in any page or post
362
363
== Changelog ==
364
= 2.3.8 =
365
* Fix: Fixed a positioning issue with the Facebook "Like Box / Page Plugin" widget caused by a recent Facebook update which was causing it to overlap on top of other content
366
* Fix: Hashtags containing Chinese characters are now linked
3
Tags: Facebook, Facebook feed, Facebook posts, Facebook wall, Facebook events, Facebook page, Facebook group, Facebook groups, Facebook fans, Facebook likes, Facebook followers, Facebooks, Face book, posts, Facebook postings, Facebook feeds, Facebook pages, Facebook Like Box, Facebook plugin, Facebook plug-in, Facebook walls, Facebook hashtag, Facebook embed, Customizable Facebook Feed, custom, customizable, seo, responsive, mobile, social media
4
Requires at least: 3.0
5
Tested up to: 4.3.1
6
+ Stable tag: 2.3.9
7
License: GPLv2 or later
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
361
9. It's super easy to display your Facebook feed in any page or post
362
363
== Changelog ==
364
+ = 2.3.9 =
365
+ * Fix: Fixed an issue caused by the recent Facebook API 2.5 update where the posts wouldn't display when using a brand new Access Token
366
+
367
= 2.3.8 =
368
* Fix: Fixed a positioning issue with the Facebook "Like Box / Page Plugin" widget caused by a recent Facebook update which was causing it to overlap on top of other content
369
* Fix: Hashtags containing Chinese characters are now linked
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 completely customizable Facebook feeds to your WordPress site
6
- Version: 2.3.8
7
Author: Smash Balloon
8
Author URI: http://smashballoon.com/
9
License: GPLv2 or later
@@ -25,7 +25,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
//Include admin
26
include dirname( __FILE__ ) .'/custom-facebook-feed-admin.php';
27
28
- define('CFFVER', '2.3.8');
29
30
// Add shortcodes
31
add_shortcode('custom-facebook-feed', 'display_cff');
@@ -1110,14 +1110,17 @@ function display_cff($atts) {
1110
if( ( $cff_post_text_type == 'message' && isset($news->message_tags) ) || ( $cff_post_text_type == 'story' && !isset($news->message_tags) ) ) {
1111
1112
//Does the Post Text contain any html tags? - the & symbol is the best indicator of this
1113
- $cff_html_check_array = array('<', '’', '“', '"', '&', '>>');
1114
1115
//always use the text replace method
1116
if( cff_stripos_arr($post_text, $cff_html_check_array) !== false ) {
1117
//Loop through the tags
1118
foreach($text_tags as $message_tag ) {
1119
- $tag_name = $message_tag[0]->name;
1120
- $tag_link = '<a href="http://facebook.com/' . $message_tag[0]->id . '" style="color: #'.$cff_posttext_link_color.';" target="_blank">' . $message_tag[0]->name . '</a>';
1121
1122
$post_text = str_replace($tag_name, $tag_link, $post_text);
1123
}
@@ -1129,15 +1132,18 @@ function display_cff($atts) {
1129
$i = 0;
1130
foreach($text_tags as $message_tag ) {
1131
$i++;
1132
$message_tags_arr = cff_array_push_assoc(
1133
$message_tags_arr,
1134
$i,
1135
array(
1136
- 'id' => $message_tag[0]->id,
1137
- 'name' => $message_tag[0]->name,
1138
- 'type' => isset($message_tag[0]->type) ? $message_tag[0]->type : '',
1139
- 'offset' => $message_tag[0]->offset,
1140
- 'length' => $message_tag[0]->length
1141
)
1142
);
1143
}
3
Plugin Name: Custom Facebook Feed
4
Plugin URI: http://smashballoon.com/custom-facebook-feed
5
Description: Add completely customizable Facebook feeds to your WordPress site
6
+ Version: 2.3.9
7
Author: Smash Balloon
8
Author URI: http://smashballoon.com/
9
License: GPLv2 or later
25
//Include admin
26
include dirname( __FILE__ ) .'/custom-facebook-feed-admin.php';
27
28
+ define('CFFVER', '2.3.9');
29
30
// Add shortcodes
31
add_shortcode('custom-facebook-feed', 'display_cff');
1110
if( ( $cff_post_text_type == 'message' && isset($news->message_tags) ) || ( $cff_post_text_type == 'story' && !isset($news->message_tags) ) ) {
1111
1112
//Does the Post Text contain any html tags? - the & symbol is the best indicator of this
1113
+ $cff_html_check_array = array('&lt;', '’', '“', '&quot;', '&amp;', '&gt;&gt;', '&gt;');
1114
1115
//always use the text replace method
1116
if( cff_stripos_arr($post_text, $cff_html_check_array) !== false ) {
1117
//Loop through the tags
1118
foreach($text_tags as $message_tag ) {
1119
+
1120
+ ( isset($message_tag->id) ) ? $message_tag = $message_tag : $message_tag = $message_tag[0];
1121
+
1122
+ $tag_name = $message_tag->name;
1123
+ $tag_link = '<a href="http://facebook.com/' . $message_tag->id . '" style="color: #'.$cff_posttext_link_color.';" target="_blank">' . $message_tag->name . '</a>';
1124
1125
$post_text = str_replace($tag_name, $tag_link, $post_text);
1126
}
1132
$i = 0;
1133
foreach($text_tags as $message_tag ) {
1134
$i++;
1135
+
1136
+ ( isset($message_tag->id) ) ? $message_tag = $message_tag : $message_tag = $message_tag[0];
1137
+
1138
$message_tags_arr = cff_array_push_assoc(
1139
$message_tags_arr,
1140
$i,
1141
array(
1142
+ 'id' => $message_tag->id,
1143
+ 'name' => $message_tag->name,
1144
+ 'type' => isset($message_tag->type) ? $message_tag->type : '',
1145
+ 'offset' => $message_tag->offset,
1146
+ 'length' => $message_tag->length
1147
)
1148
);
1149
}