Feed Them Social – Facebook, Instagram, Twitter, YouTube, Pinterest - Version 2.4.3

Version Description

Download this release

Release Info

Developer slickremix
Plugin Icon 128x128 Feed Them Social – Facebook, Instagram, Twitter, YouTube, Pinterest
Version 2.4.3
Comparing to
See all releases

Code changes from version 2.4.2 to 2.4.3

admin/feed-them-facebook-style-options-page.php CHANGED
@@ -100,9 +100,9 @@ class FTS_facebook_options_page
100
  $test_app_token_response_biz = $fts_functions->fts_get_feed_json($test_app_token_URL_biz);
101
  $test_app_token_response_biz = json_decode($test_app_token_response_biz['app_token_id_biz']);
102
 
103
- // echo'<pre>';
104
- /// print_r($test_app_token_response);
105
- // echo'</pre>';
106
  }
107
  ?>
108
  <div class="clear"></div>
@@ -808,7 +808,7 @@ class FTS_facebook_options_page
808
  </div>
809
  <!--/fts-facebook-feed-styles-input-wrap-->
810
 
811
- <div class="feed-them-social-admin-input-wrap">
812
  <div class="feed-them-social-admin-input-label fb-events-title-size-label">
813
  <?php _e('Events Feed: Title Size', 'feed-them-social'); ?>
814
  </div>
@@ -817,7 +817,7 @@ class FTS_facebook_options_page
817
  </div>
818
  <!--/fts-facebook-feed-styles-input-wrap-->
819
 
820
- <div class="feed-them-social-admin-input-wrap">
821
  <div class="feed-them-social-admin-input-label fb-events-map-link-color-label">
822
  <?php _e('Events Feed: Map Link Color', 'feed-them-social'); ?>
823
  </div>
100
  $test_app_token_response_biz = $fts_functions->fts_get_feed_json($test_app_token_URL_biz);
101
  $test_app_token_response_biz = json_decode($test_app_token_response_biz['app_token_id_biz']);
102
 
103
+ // echo'<pre>';
104
+ // print_r($test_app_token_response);
105
+ // echo'</pre>';
106
  }
107
  ?>
108
  <div class="clear"></div>
808
  </div>
809
  <!--/fts-facebook-feed-styles-input-wrap-->
810
 
811
+ <div class="feed-them-social-admin-input-wrap" style="display: none !important;">
812
  <div class="feed-them-social-admin-input-label fb-events-title-size-label">
813
  <?php _e('Events Feed: Title Size', 'feed-them-social'); ?>
814
  </div>
817
  </div>
818
  <!--/fts-facebook-feed-styles-input-wrap-->
819
 
820
+ <div class="feed-them-social-admin-input-wrap" style="display: none !important;">
821
  <div class="feed-them-social-admin-input-label fb-events-map-link-color-label">
822
  <?php _e('Events Feed: Map Link Color', 'feed-them-social'); ?>
823
  </div>
admin/feed-them-instagram-style-options-page.php CHANGED
@@ -227,11 +227,9 @@ class FTS_instagram_options_page
227
  </div>
228
  <!--/fts-instagram-feed-styles-input-wrap-->
229
  <?php } ?>
230
-
231
- <input type="submit" class="feed-them-social-admin-submit-btn" value="<?php _e('Save All Changes') ?>"/>
232
-
233
  </form>
234
- <a class="feed-them-social-admin-slick-logo" href="http://www.slickremix.com" target="_blank"></a></div>
235
  <!--/feed-them-social-admin-wrap-->
236
 
237
  <?php }
227
  </div>
228
  <!--/fts-instagram-feed-styles-input-wrap-->
229
  <?php } ?>
230
+ <input type="submit" class="feed-them-social-admin-submit-btn" value="<?php _e('Save All Changes') ?>"/>
 
 
231
  </form>
232
+ </div>
233
  <!--/feed-them-social-admin-wrap-->
234
 
235
  <?php }
admin/feed-them-pinterest-style-options-page.php CHANGED
@@ -148,7 +148,6 @@ class FTS_pinterest_options_page {
148
  </div><!--/fts-twitter-feed-styles-input-wrap-->
149
 
150
 
151
-
152
  <div class="feed-them-social-admin-input-wrap">
153
  <div class="fts-title-description-settings-page">
154
  <h3>
@@ -180,13 +179,10 @@ class FTS_pinterest_options_page {
180
  </div>
181
  <!--/fts-facebook-feed-styles-input-wrap-->
182
 
183
-
184
-
185
-
186
  <div class="fts-clear"></div>
187
  <input type="submit" class="feed-them-social-admin-submit-btn" value="<?php _e('Save All Changes') ?>" />
188
  </form>
189
- <a class="feed-them-social-admin-slick-logo" href="http://www.slickremix.com" target="_blank"></a> </div>
190
  <!--/feed-them-social-admin-wrap-->
191
 
192
  <?php }
148
  </div><!--/fts-twitter-feed-styles-input-wrap-->
149
 
150
 
 
151
  <div class="feed-them-social-admin-input-wrap">
152
  <div class="fts-title-description-settings-page">
153
  <h3>
179
  </div>
180
  <!--/fts-facebook-feed-styles-input-wrap-->
181
 
 
 
 
182
  <div class="fts-clear"></div>
183
  <input type="submit" class="feed-them-social-admin-submit-btn" value="<?php _e('Save All Changes') ?>" />
184
  </form>
185
+ </div>
186
  <!--/feed-them-social-admin-wrap-->
187
 
188
  <?php }
admin/feed-them-twitter-style-options-page.php CHANGED
@@ -541,18 +541,10 @@ class FTS_twitter_options_page
541
  <div class="fts-clear"></div>
542
  </div>
543
  <!--/fts-twitter-feed-styles-input-wrap-->
544
-
545
  <?php } ?>
546
-
547
-
548
-
549
- <input type="submit" class="feed-them-social-admin-submit-btn" value="<?php _e('Save All Changes') ?>"/>
550
-
551
  </form>
552
- <a class="feed-them-social-admin-slick-logo" href="http://www.slickremix.com" target="_blank"></a>
553
- <div class="fts-clear"></div>
554
  </div>
555
  <!--/feed-them-social-admin-wrap-->
556
- <div class="clear"></div>
557
  <?php }
558
  }//END Class
541
  <div class="fts-clear"></div>
542
  </div>
543
  <!--/fts-twitter-feed-styles-input-wrap-->
 
544
  <?php } ?>
545
+ <input type="submit" class="feed-them-social-admin-submit-btn" value="<?php _e('Save All Changes') ?>"/>
 
 
 
 
546
  </form>
 
 
547
  </div>
548
  <!--/feed-them-social-admin-wrap-->
 
549
  <?php }
550
  }//END Class
admin/feed-them-youtube-style-options-page.php CHANGED
@@ -328,11 +328,9 @@ class FTS_youtube_options_page
328
  <!--/fts-twitter-feed-styles-input-wrap-->
329
 
330
  <?php } // END premium ?>
331
-
332
  <input type="submit" class="feed-them-social-admin-submit-btn" value="<?php _e('Save All Changes') ?>"/>
333
-
334
  </form>
335
- <a class="feed-them-social-admin-slick-logo" href="http://www.slickremix.com" target="_blank"></a></div>
336
  <!--/feed-them-social-admin-wrap-->
337
  <?php }
338
  }//END Class
328
  <!--/fts-twitter-feed-styles-input-wrap-->
329
 
330
  <?php } // END premium ?>
 
331
  <input type="submit" class="feed-them-social-admin-submit-btn" value="<?php _e('Save All Changes') ?>"/>
 
332
  </form>
333
+ </div>
334
  <!--/feed-them-social-admin-wrap-->
335
  <?php }
336
  }//END Class
feed-them.php CHANGED
@@ -8,22 +8,23 @@
8
  * Plugin Name: Feed Them Social (Facebook, Instagram, Twitter, etc)
9
  * Plugin URI: http://feedthemsocial.com/
10
  * Description: Customize feeds for Facebook Pages, Album Photos, Videos & Covers, Instagram, Twitter, Pinterest & YouTube on pages, posts or widgets.
11
- * Version: 2.4.2
12
  * Author: SlickRemix
13
  * Author URI: https://slickremix.com/
14
  * Text Domain: feed-them-social
15
  * Domain Path: /languages
16
  * Requires at least: wordpress 4.0.0
17
  * Tested up to: WordPress 4.9.6
18
- * Stable tag: 2.4.2
19
  * License: GPLv2 or later
20
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
21
  *
22
- * @version 2.4.2
23
  * @package FeedThemSocial/Core
24
  * @copyright Copyright (c) 2012-2018 SlickRemix
25
  *
26
- * Need Support? http://www.slickremix.com/my-account
 
27
  */
28
 
29
  final class Feed_Them_Social {
8
  * Plugin Name: Feed Them Social (Facebook, Instagram, Twitter, etc)
9
  * Plugin URI: http://feedthemsocial.com/
10
  * Description: Customize feeds for Facebook Pages, Album Photos, Videos & Covers, Instagram, Twitter, Pinterest & YouTube on pages, posts or widgets.
11
+ * Version: 2.4.3
12
  * Author: SlickRemix
13
  * Author URI: https://slickremix.com/
14
  * Text Domain: feed-them-social
15
  * Domain Path: /languages
16
  * Requires at least: wordpress 4.0.0
17
  * Tested up to: WordPress 4.9.6
18
+ * Stable tag: 2.4.3
19
  * License: GPLv2 or later
20
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
21
  *
22
+ * @version 2.4.3
23
  * @package FeedThemSocial/Core
24
  * @copyright Copyright (c) 2012-2018 SlickRemix
25
  *
26
+ * Need Support: https://wordpress.org/support/plugin/feed-them-social
27
+ * Paid Extension Support: https://www.slickremix.com/my-account/#tab-support
28
  */
29
 
30
  final class Feed_Them_Social {
feeds/facebook/facebook-feed-post-types.php CHANGED
@@ -233,9 +233,6 @@ class FTS_Facebook_Feed_Post_Types extends FTS_Facebook_Feed
233
  $FTS_FB_OUTPUT .= '<a href="https://facebook.com/' . ($FB_Shortcode['type'] == 'reviews' ? $post_data->reviewer->id : $post_data->from->id) . '" target="_blank"><img border="0" alt="' . ($FB_Shortcode['type'] == 'reviews' ? $post_data->reviewer->name : $post_data->from->name) . '" src="https://graph.facebook.com/' . ($FB_Shortcode['type'] == 'reviews' ? $post_data->reviewer->id : $post_data->from->id) . '/picture"/></a>';
234
  $FTS_FB_OUTPUT .= '</div>';
235
 
236
-
237
-
238
-
239
  //UserName
240
  $FTS_FB_OUTPUT .= $FB_Shortcode['type'] == 'reviews' && is_plugin_active('feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php') ? '<span class="fts-jal-fb-user-name" itemprop="author" itemscope itemtype="http://schema.org/Person"><a href="https://facebook.com/' . $post_data->reviewer->id . '/" target="_blank" ><span itemprop="name">' . $post_data->reviewer->name . '</span></a>' . $FTS_Facebook_Reviews->reviews_rating_format($FB_Shortcode, $post_data->rating) . '</span>' : '<span class="fts-jal-fb-user-name"><a href="https://facebook.com/' . $post_data->from->id . '" target="_blank">' . $post_data->from->name . '</a>' . $fb_hide_shared_by_etc_text . '</span>';
241
 
233
  $FTS_FB_OUTPUT .= '<a href="https://facebook.com/' . ($FB_Shortcode['type'] == 'reviews' ? $post_data->reviewer->id : $post_data->from->id) . '" target="_blank"><img border="0" alt="' . ($FB_Shortcode['type'] == 'reviews' ? $post_data->reviewer->name : $post_data->from->name) . '" src="https://graph.facebook.com/' . ($FB_Shortcode['type'] == 'reviews' ? $post_data->reviewer->id : $post_data->from->id) . '/picture"/></a>';
234
  $FTS_FB_OUTPUT .= '</div>';
235
 
 
 
 
236
  //UserName
237
  $FTS_FB_OUTPUT .= $FB_Shortcode['type'] == 'reviews' && is_plugin_active('feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php') ? '<span class="fts-jal-fb-user-name" itemprop="author" itemscope itemtype="http://schema.org/Person"><a href="https://facebook.com/' . $post_data->reviewer->id . '/" target="_blank" ><span itemprop="name">' . $post_data->reviewer->name . '</span></a>' . $FTS_Facebook_Reviews->reviews_rating_format($FB_Shortcode, $post_data->rating) . '</span>' : '<span class="fts-jal-fb-user-name"><a href="https://facebook.com/' . $post_data->from->id . '" target="_blank">' . $post_data->from->name . '</a>' . $fb_hide_shared_by_etc_text . '</span>';
238
 
feeds/facebook/facebook-feed.php CHANGED
@@ -294,11 +294,16 @@ class FTS_Facebook_Feed extends feed_them_social_functions {
294
  // this count includes our original posts count + the amount of posts we found with no description
295
  $FB_Shortcode['posts'] = $no_description_count;
296
  }
297
-
298
  //Get Response (AKA Page & Feed Information) ERROR CHECK inside this function
299
- $response = $this->get_facebook_feed_response($FB_Shortcode, $fb_cache_name, $access_token, $language);
300
 
301
  $feed_data = json_decode($response['feed_data']);
 
 
 
 
 
302
 
303
  if($FB_Shortcode['remove_reviews_no_description'] == 'yes') {
304
  // $no_description_count2 = 0;
@@ -311,6 +316,11 @@ class FTS_Facebook_Feed extends feed_them_social_functions {
311
  }
312
  }
313
  $ratings_data = json_decode($response['ratings_data']);
 
 
 
 
 
314
  }
315
 
316
 
@@ -1407,10 +1417,10 @@ style="margin:' . (isset($FB_Shortcode['slider_margin']) && $FB_Shortcode['slide
1407
  $mulit_data = array('page_data' => 'https://graph.facebook.com/' . $FB_Shortcode['id'] . '?fields=id,name,description&access_token=' . $access_token . $language . '');
1408
 
1409
  if(!$ftsCountIds >= 1) {
1410
- $mulit_data['feed_data'] = isset($_REQUEST['next_url']) ? $_REQUEST['next_url'] : 'https://graph.facebook.com/' . $FB_Shortcode['id'] . '/posts?fields=id,caption,attachments,created_time,description,from,icon,link,message,name,object_id,picture,full_picture,place,shares,source,status_type,story,to,with_tags,type&limit=' . $FB_Shortcode['posts'] . '&access_token=' . $access_token . $language . '';
1411
  }
1412
  else{
1413
- $mulit_data['feed_data'] = isset($_REQUEST['next_url']) ? $_REQUEST['next_url'] : 'https://graph.facebook.com/posts?ids=' . $FB_Shortcode['id'] . '&fields=id,caption,attachments,created_time,description,from,icon,link,message,name,object_id,picture,full_picture,place,shares,source,status_type,story,to,with_tags,type&limit=' . $FB_Shortcode['posts'] . '&access_token=' . $access_token . $language . '';
1414
  }
1415
 
1416
  } //Event
294
  // this count includes our original posts count + the amount of posts we found with no description
295
  $FB_Shortcode['posts'] = $no_description_count;
296
  }
297
+ $biz_access_token = get_option('fts_facebook_custom_api_token_biz');
298
  //Get Response (AKA Page & Feed Information) ERROR CHECK inside this function
299
+ $response = $this->get_facebook_feed_response($FB_Shortcode, $fb_cache_name, $biz_access_token, $language);
300
 
301
  $feed_data = json_decode($response['feed_data']);
302
+ // SHOW THE REVIEWS FEED PRINT_R
303
+ // echo '<pre>';
304
+ // print_r($feed_data );
305
+ // echo '</pre>';
306
+
307
 
308
  if($FB_Shortcode['remove_reviews_no_description'] == 'yes') {
309
  // $no_description_count2 = 0;
316
  }
317
  }
318
  $ratings_data = json_decode($response['ratings_data']);
319
+ // SHOW THE REVIEWS RATING INFO PRINT_R
320
+ // echo '<pre>';
321
+ // print_r($ratings_data );
322
+ // echo '</pre>';
323
+
324
  }
325
 
326
 
1417
  $mulit_data = array('page_data' => 'https://graph.facebook.com/' . $FB_Shortcode['id'] . '?fields=id,name,description&access_token=' . $access_token . $language . '');
1418
 
1419
  if(!$ftsCountIds >= 1) {
1420
+ $mulit_data['feed_data'] = isset($_REQUEST['next_url']) ? $_REQUEST['next_url'] : 'https://graph.facebook.com/' . $FB_Shortcode['id'] . '/posts?fields=id,caption,attachments,created_time,description,from,icon,link,message,name,object_id,picture,full_picture,place,shares,source,status_type,story,to,type&limit=' . $FB_Shortcode['posts'] . '&access_token=' . $access_token . $language . '';
1421
  }
1422
  else{
1423
+ $mulit_data['feed_data'] = isset($_REQUEST['next_url']) ? $_REQUEST['next_url'] : 'https://graph.facebook.com/posts?ids=' . $FB_Shortcode['id'] . '&fields=id,caption,attachments,created_time,description,from,icon,link,message,name,object_id,picture,full_picture,place,shares,source,status_type,story,to,type&limit=' . $FB_Shortcode['posts'] . '&access_token=' . $access_token . $language . '';
1424
  }
1425
 
1426
  } //Event
feeds/js/fts-global-full.js CHANGED
@@ -274,11 +274,6 @@ function slickremixImageResizingFacebook() {
274
 
275
 
276
 
277
-
278
-
279
-
280
-
281
-
282
 
283
 
284
 
274
 
275
 
276
 
 
 
 
 
 
277
 
278
 
279
 
includes/feed-them-functions.php CHANGED
@@ -294,6 +294,7 @@ class feed_them_social_functions
294
  // jQuery('#loadMore_< ?php echo $fts_dynamic_name ?>').removeClass('flip360-fts-load-more');
295
  jQuery("#loadMore_<?php echo $fts_dynamic_name ?>").removeClass('fts-fb-spinner');
296
 
 
297
  }
298
  }); // end of ajax()
299
  return false;
@@ -330,6 +331,7 @@ class feed_them_social_functions
330
 
331
  var fb = ".fb-page-list li";
332
  $('#fb-list-wrap').show();
 
333
  //alert("not set");
334
  <?php } else { ?>
335
  var fb = "#reviews-fb-list-wrap .fb-page-list li";
294
  // jQuery('#loadMore_< ?php echo $fts_dynamic_name ?>').removeClass('flip360-fts-load-more');
295
  jQuery("#loadMore_<?php echo $fts_dynamic_name ?>").removeClass('fts-fb-spinner');
296
 
297
+
298
  }
299
  }); // end of ajax()
300
  return false;
331
 
332
  var fb = ".fb-page-list li";
333
  $('#fb-list-wrap').show();
334
+ $('.fts-failed-api-token.get-started-message-hide').hide();
335
  //alert("not set");
336
  <?php } else { ?>
337
  var fb = "#reviews-fb-list-wrap .fb-page-list li";
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: 4.9.6
6
- Stable tag: 2.4.2
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.
@@ -76,6 +76,11 @@ Feed Them Social was Developed By SlickRemix --> [https://www.slickremix.com/](h
76
  * Log into WordPress dashboard then click **Plugins** > **Add new** > Then under the title "Install Plugins" click **Upload** > **choose the zip** > **Activate the plugin!**
77
 
78
  == Changelog ==
 
 
 
 
 
79
  = Version 2.4.2 Wednesday, June 13th, 2018 =
80
  * FIX: Instagram Feed: User data was not getting cached probably cause API usage even if the feed was cached. Additional error check in place should also make sure cached feed is used if error found.
81
  * FIX: Instagram Options: Message under Access Token will now show if your Access Token has hit an API limit and what the total consuption is. 200 calls per hour is the general limit, Instagram says. This does not mean 200 page loads or visitors, this means how much information is called from Instagram to create your feed. That is why extended cache times are best now.
3
  Tags: Facebook, Instagram, Twitter, YouTube, Feed
4
  Requires at least: 3.6.0
5
  Tested up to: 4.9.6
6
+ Stable tag: 2.4.3
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.
76
  * Log into WordPress dashboard then click **Plugins** > **Add new** > Then under the title "Install Plugins" click **Upload** > **choose the zip** > **Activate the plugin!**
77
 
78
  == Changelog ==
79
+ = Version 2.4.3 Wednesday, June 27th, 2018 =
80
+ * FIX: Facebook Feed: Remove with_tags depreciated call in app vs 2.7. Ths was causing many feeds to show an Error #100 message. This will also fix anyone encountering this error with the Combined Streams plugin.
81
+ * EDIT: Facebook Options: Remove a few overlooked style options for Events
82
+ * Options Pages: Remove unused logo a tag at the end of each page.
83
+
84
  = Version 2.4.2 Wednesday, June 13th, 2018 =
85
  * FIX: Instagram Feed: User data was not getting cached probably cause API usage even if the feed was cached. Additional error check in place should also make sure cached feed is used if error found.
86
  * FIX: Instagram Options: Message under Access Token will now show if your Access Token has hit an API limit and what the total consuption is. 200 calls per hour is the general limit, Instagram says. This does not mean 200 page loads or visitors, this means how much information is called from Instagram to create your feed. That is why extended cache times are best now.