Version Description
Download this release
Release Info
Developer | slickremix |
Plugin | Feed Them Social – Facebook, Instagram, Twitter, YouTube, Pinterest |
Version | 2.6.5 |
Comparing to | |
See all releases |
Code changes from version 2.6.4 to 2.6.5
- feed-them.php +4 -4
- feeds/facebook/class-fts-facebook-feed-post-types.php +20 -14
- feeds/facebook/class-fts-facebook-feed.php +28 -1
- readme.txt +6 -1
feed-them.php
CHANGED
@@ -7,18 +7,18 @@
|
|
7 |
* Plugin Name: Feed Them Social (Facebook, Instagram, Twitter, etc)
|
8 |
* Plugin URI: https://feedthemsocial.com/
|
9 |
* Description: Customize feeds for Facebook Pages, Album Photos, Videos & Covers, Instagram, Twitter, Pinterest & YouTube on pages, posts or widgets.
|
10 |
-
* Version: 2.6.
|
11 |
* Author: SlickRemix
|
12 |
* Author URI: https://www.slickremix.com/
|
13 |
* Text Domain: feed-them-social
|
14 |
* Domain Path: /languages
|
15 |
* Requires at least: WordPress 4.0.0
|
16 |
* Tested up to: WordPress 5.0.3
|
17 |
-
* Stable tag: 2.6.
|
18 |
* License: GPLv2 or later
|
19 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
20 |
*
|
21 |
-
* @version 2.6.
|
22 |
* @package FeedThemSocial/Core
|
23 |
* @copyright Copyright (c) 2012-2019 SlickRemix
|
24 |
*
|
@@ -31,7 +31,7 @@
|
|
31 |
*
|
32 |
* Makes sure any js or css changes are reloaded properly. Added to enqued css and js files throughout!
|
33 |
*/
|
34 |
-
define( 'FTS_CURRENT_VERSION', '2.6.
|
35 |
|
36 |
define( 'FEED_THEM_SOCIAL_NOTICE_STATUS', get_option( 'rating_fts_slick_notice', false ) );
|
37 |
|
7 |
* Plugin Name: Feed Them Social (Facebook, Instagram, Twitter, etc)
|
8 |
* Plugin URI: https://feedthemsocial.com/
|
9 |
* Description: Customize feeds for Facebook Pages, Album Photos, Videos & Covers, Instagram, Twitter, Pinterest & YouTube on pages, posts or widgets.
|
10 |
+
* Version: 2.6.5
|
11 |
* Author: SlickRemix
|
12 |
* Author URI: https://www.slickremix.com/
|
13 |
* Text Domain: feed-them-social
|
14 |
* Domain Path: /languages
|
15 |
* Requires at least: WordPress 4.0.0
|
16 |
* Tested up to: WordPress 5.0.3
|
17 |
+
* Stable tag: 2.6.5
|
18 |
* License: GPLv2 or later
|
19 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
20 |
*
|
21 |
+
* @version 2.6.5
|
22 |
* @package FeedThemSocial/Core
|
23 |
* @copyright Copyright (c) 2012-2019 SlickRemix
|
24 |
*
|
31 |
*
|
32 |
* Makes sure any js or css changes are reloaded properly. Added to enqued css and js files throughout!
|
33 |
*/
|
34 |
+
define( 'FTS_CURRENT_VERSION', '2.6.5' );
|
35 |
|
36 |
define( 'FEED_THEM_SOCIAL_NOTICE_STATUS', get_option( 'rating_fts_slick_notice', false ) );
|
37 |
|
feeds/facebook/class-fts-facebook-feed-post-types.php
CHANGED
@@ -184,6 +184,10 @@ class FTS_Facebook_Feed_Post_Types extends FTS_Facebook_Feed {
|
|
184 |
// Count Likes/Shares/.
|
185 |
$lcs_array = $this->get_likes_shares_comments( $response_post_array, $post_data_key, $fb_post_share_count );
|
186 |
|
|
|
|
|
|
|
|
|
187 |
$fb_location = isset( $post_data->location ) ? $post_data->location : '';
|
188 |
$fb_embed_vid = isset( $post_data->embed_html ) ? $post_data->embed_html : '';
|
189 |
$fb_from_name = isset( $post_data->from->name ) ? $post_data->from->name : '';
|
@@ -303,7 +307,7 @@ class FTS_Facebook_Feed_Post_Types extends FTS_Facebook_Feed {
|
|
303 |
|
304 |
echo '<div class="fts-jal-fb-user-thumb">';
|
305 |
|
306 |
-
echo ( 'reviews' === esc_attr( $fb_shortcode['type'] ) ? '' : '<a href="https://www.facebook.com/' . esc_attr( $post_data->from->id ) . '" target="_blank">' ) . '<img border="0" alt="' . ( 'reviews' === esc_attr( $fb_shortcode['type'] ) ? esc_attr( $post_data->reviewer->name ) : esc_attr( $post_data->from->name ) ) . '" src="
|
307 |
|
308 |
echo '</div>';
|
309 |
|
@@ -690,7 +694,7 @@ class FTS_Facebook_Feed_Post_Types extends FTS_Facebook_Feed {
|
|
690 |
}
|
691 |
}
|
692 |
// srl: 8/27/17 - FB BUG: for some reason the full_picture for animated gifs is not correct so we dig deeper and grab another image size fb has set.
|
693 |
-
if ( 'animated_image_video' === $post_data->attachments->data[0]->type ) {
|
694 |
$vid_pic = $post_data->attachments->data[0]->media->image->src;
|
695 |
} else {
|
696 |
$vid_pic = $post_data->full_picture;
|
@@ -1000,18 +1004,20 @@ class FTS_Facebook_Feed_Post_Types extends FTS_Facebook_Feed {
|
|
1000 |
echo '<div class="fts-fb-comments-content fts-comments-post-' . esc_attr( $fb_post_id ) . '">';
|
1001 |
|
1002 |
foreach ( $lcs_array['comments_thread']->data as $comment ) {
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
|
|
|
|
1015 |
}
|
1016 |
echo '</div>';
|
1017 |
}
|
184 |
// Count Likes/Shares/.
|
185 |
$lcs_array = $this->get_likes_shares_comments( $response_post_array, $post_data_key, $fb_post_share_count );
|
186 |
|
187 |
+
//echo '<pre>';
|
188 |
+
//print_r($lcs_array);
|
189 |
+
//echo '</pre>';
|
190 |
+
|
191 |
$fb_location = isset( $post_data->location ) ? $post_data->location : '';
|
192 |
$fb_embed_vid = isset( $post_data->embed_html ) ? $post_data->embed_html : '';
|
193 |
$fb_from_name = isset( $post_data->from->name ) ? $post_data->from->name : '';
|
307 |
|
308 |
echo '<div class="fts-jal-fb-user-thumb">';
|
309 |
|
310 |
+
echo ( 'reviews' === esc_attr( $fb_shortcode['type'] ) ? '' : '<a href="https://www.facebook.com/' . esc_attr( $post_data->from->id ) . '" target="_blank">' ) . '<img border="0" alt="' . ( 'reviews' === esc_attr( $fb_shortcode['type'] ) ? esc_attr( $post_data->reviewer->name ) : esc_attr( $post_data->from->name ) ) . '" src="' . ( 'reviews' === esc_attr( $fb_shortcode['type'] ) ? esc_url( $post_data->fts_profile_pic_url ) : 'https://graph.facebook.com/' .esc_attr( $post_data->from->id ) ) . '/picture"/></a>' . ( 'reviews' === esc_attr( $fb_shortcode['type'] ) ? '' : '</a>' );
|
311 |
|
312 |
echo '</div>';
|
313 |
|
694 |
}
|
695 |
}
|
696 |
// srl: 8/27/17 - FB BUG: for some reason the full_picture for animated gifs is not correct so we dig deeper and grab another image size fb has set.
|
697 |
+
if ( isset($post_data->attachments->data[0]->type) && 'animated_image_video' === $post_data->attachments->data[0]->type ) {
|
698 |
$vid_pic = $post_data->attachments->data[0]->media->image->src;
|
699 |
} else {
|
700 |
$vid_pic = $post_data->full_picture;
|
1004 |
echo '<div class="fts-fb-comments-content fts-comments-post-' . esc_attr( $fb_post_id ) . '">';
|
1005 |
|
1006 |
foreach ( $lcs_array['comments_thread']->data as $comment ) {
|
1007 |
+
if(!empty($comment->message)) {
|
1008 |
+
echo '<div class="fts-fb-comment fts-fb-comment-' . esc_attr( $comment->id ) . '">';
|
1009 |
+
// User Profile Img.
|
1010 |
+
$avatar_id = isset( $comment->from->id ) ? $comment->from->id : '118790751525884';
|
1011 |
+
echo '<img class="fts-fb-comment-user-pic" src="' . esc_url( 'https://graph.facebook.com/' . $avatar_id . '/picture?type=square' ) . '"/>';
|
1012 |
+
echo '<div class="fts-fb-comment-msg">';
|
1013 |
+
if ( isset( $comment->from->name ) ) {
|
1014 |
+
echo '<span class="fts-fb-comment-user-name">' . esc_html( $comment->from->name ) . '</span> ';
|
1015 |
+
}
|
1016 |
+
echo esc_html( $comment->message ) . '</div>';
|
1017 |
+
|
1018 |
+
// Comment Message.
|
1019 |
+
echo '</div>';
|
1020 |
+
}
|
1021 |
}
|
1022 |
echo '</div>';
|
1023 |
}
|
feeds/facebook/class-fts-facebook-feed.php
CHANGED
@@ -318,10 +318,16 @@ class FTS_Facebook_Feed extends feed_them_social_functions {
|
|
318 |
$response = $this->get_facebook_feed_response( $fb_shortcode, $fb_cache_name, $biz_access_token, $language );
|
319 |
|
320 |
$feed_data = json_decode( $response['feed_data'] );
|
|
|
|
|
|
|
|
|
321 |
// SHOW THE REVIEWS FEED PRINT_R
|
322 |
// echo '<pre>';
|
323 |
// print_r($feed_data );
|
324 |
-
// echo '</pre>'
|
|
|
|
|
325 |
if ( 'yes' === $fb_shortcode['remove_reviews_no_description'] ) {
|
326 |
// $no_description_count2 = 0;.
|
327 |
foreach ( $feed_data->data as $k => $v ) {
|
@@ -333,10 +339,27 @@ class FTS_Facebook_Feed extends feed_them_social_functions {
|
|
333 |
}
|
334 |
}
|
335 |
$ratings_data = json_decode( $response['ratings_data'] );
|
|
|
336 |
// SHOW THE REVIEWS RATING INFO PRINT_R
|
337 |
// echo '<pre>';
|
338 |
// print_r($ratings_data );
|
339 |
// echo '</pre>';.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
340 |
}
|
341 |
|
342 |
if ( is_plugin_active( 'feed-them-social-combined-streams/feed-them-social-combined-streams.php' ) ) {
|
@@ -1652,8 +1675,12 @@ style="margin:' . ( isset( $fb_shortcode['slider_margin'] ) && '' !== $fb_shortc
|
|
1652 |
$fts_facebook_reviews = new FTS_Facebook_Reviews();
|
1653 |
$mulit_data = $fts_facebook_reviews->review_connection( $fb_shortcode, $access_token, $language );
|
1654 |
|
|
|
|
|
|
|
1655 |
$mulit_data['ratings_data'] = esc_url_raw( 'https://graph.facebook.com/' . $fb_shortcode['id'] . '/?fields=overall_star_rating,rating_count&access_token=' . $access_token . '' );
|
1656 |
|
|
|
1657 |
} else {
|
1658 |
return 'Please Purchase and Activate the Feed Them Social Reviews plugin.';
|
1659 |
exit;
|
318 |
$response = $this->get_facebook_feed_response( $fb_shortcode, $fb_cache_name, $biz_access_token, $language );
|
319 |
|
320 |
$feed_data = json_decode( $response['feed_data'] );
|
321 |
+
|
322 |
+
$feed_data = (object) $feed_data;
|
323 |
+
// Add Feed Type to post array.
|
324 |
+
|
325 |
// SHOW THE REVIEWS FEED PRINT_R
|
326 |
// echo '<pre>';
|
327 |
// print_r($feed_data );
|
328 |
+
// echo '</pre>';
|
329 |
+
|
330 |
+
|
331 |
if ( 'yes' === $fb_shortcode['remove_reviews_no_description'] ) {
|
332 |
// $no_description_count2 = 0;.
|
333 |
foreach ( $feed_data->data as $k => $v ) {
|
339 |
}
|
340 |
}
|
341 |
$ratings_data = json_decode( $response['ratings_data'] );
|
342 |
+
|
343 |
// SHOW THE REVIEWS RATING INFO PRINT_R
|
344 |
// echo '<pre>';
|
345 |
// print_r($ratings_data );
|
346 |
// echo '</pre>';.
|
347 |
+
|
348 |
+
// Add fts_profile_pic_url to the array so we can show profile photos for reviews and comments in popup
|
349 |
+
foreach ( $feed_data->data as $post_array ) {
|
350 |
+
|
351 |
+
$the_image = 'https://graph.facebook.com/'.$post_array->reviewer->id.'/picture?redirect=false&access_token='.$biz_access_token.'';
|
352 |
+
|
353 |
+
$profile_pic_response = wp_remote_get($the_image );
|
354 |
+
$profile_pic_data = wp_remote_retrieve_body( $profile_pic_response );
|
355 |
+
$profile_pic_output = json_decode( $profile_pic_data );
|
356 |
+
|
357 |
+
// echo '<pre>';
|
358 |
+
// print_r($profile_pic_output->data->url);
|
359 |
+
// echo '</pre>';
|
360 |
+
|
361 |
+
$post_array->fts_profile_pic_url = $profile_pic_output->data->url;
|
362 |
+
}
|
363 |
}
|
364 |
|
365 |
if ( is_plugin_active( 'feed-them-social-combined-streams/feed-them-social-combined-streams.php' ) ) {
|
1675 |
$fts_facebook_reviews = new FTS_Facebook_Reviews();
|
1676 |
$mulit_data = $fts_facebook_reviews->review_connection( $fb_shortcode, $access_token, $language );
|
1677 |
|
1678 |
+
// I THINK THIS IS WHERE WE NEED TO DO ANOTHER CONNECTION TO GET THE REVIEWS IMAGES NOW THAT FACEBOOK CHANGED MORE STUFF
|
1679 |
+
// CODE GOES HERE
|
1680 |
+
|
1681 |
$mulit_data['ratings_data'] = esc_url_raw( 'https://graph.facebook.com/' . $fb_shortcode['id'] . '/?fields=overall_star_rating,rating_count&access_token=' . $access_token . '' );
|
1682 |
|
1683 |
+
|
1684 |
} else {
|
1685 |
return 'Please Purchase and Activate the Feed Them Social Reviews plugin.';
|
1686 |
exit;
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: slickremix
|
|
3 |
Tags: Facebook, Instagram, Twitter, YouTube, Feed
|
4 |
Requires at least: 3.6.0
|
5 |
Tested up to: 5.0.3
|
6 |
-
Stable tag: 2.6.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Custom feeds for Facebook Pages, Album Photos, Videos & Covers, Instagram, Twitter, Pinterest & YouTube on pages, posts or widgets.
|
@@ -75,6 +75,11 @@ Feed Them Social was Developed By SlickRemix --> [https://www.slickremix.com/](h
|
|
75 |
* Log into WordPress dashboard then click **Plugins** > **Add new** > Then under the title "Install Plugins" click **Upload** > **choose the zip** > **Activate the plugin!**
|
76 |
|
77 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
78 |
= Version 2.6.4 Thursday, February 7th, 2018 =
|
79 |
* FIX: Instagram Feed: Feed not displaying correctly.
|
80 |
|
3 |
Tags: Facebook, Instagram, Twitter, YouTube, Feed
|
4 |
Requires at least: 3.6.0
|
5 |
Tested up to: 5.0.3
|
6 |
+
Stable tag: 2.6.5
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Custom feeds for Facebook Pages, Album Photos, Videos & Covers, Instagram, Twitter, Pinterest & YouTube on pages, posts or widgets.
|
75 |
* Log into WordPress dashboard then click **Plugins** > **Add new** > Then under the title "Install Plugins" click **Upload** > **choose the zip** > **Activate the plugin!**
|
76 |
|
77 |
== Changelog ==
|
78 |
+
= Version 2.6.5 Monday, February 18th, 2018 =
|
79 |
+
* FIX: Facebook Feed: php warning: unset call for $post_data->attachments->data[0]->type
|
80 |
+
* FB REVIEWS EXTENSION: Profile photos of reviewers visible again (recent changes to the API was why the images disappeared).
|
81 |
+
* NOTE TO PREMIUM USERS: The profile and or name for comments in the popup cannot be retrieved at this time do to privacy changes with Facebook. If the user has there profile public the profile and username will appear.
|
82 |
+
|
83 |
= Version 2.6.4 Thursday, February 7th, 2018 =
|
84 |
* FIX: Instagram Feed: Feed not displaying correctly.
|
85 |
|