Feed & LikeBox For Facebook - Version 2.7.7

Version Description

[21-11-2018] 1. Facebook Access Token field added.

Download this release

Release Info

Developer weblizar
Plugin Icon 128x128 Feed & LikeBox For Facebook
Version 2.7.7
Comparing to
See all releases

Code changes from version 2.7.6 to 2.7.7

facebook-by-weblizar.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Feed & LikeBox For Facebook
4
- * Version: 2.7.6
5
  * Description: Display the Facebook Feed and Like box on your website. Its completely customizable, responsive and search engine optimization feeds contents.
6
  * Author: Weblizar
7
  * Author URI: https://www.weblizar.com
1
  <?php
2
  /**
3
  * Plugin Name: Feed & LikeBox For Facebook
4
+ * Version: 2.7.7
5
  * Description: Display the Facebook Feed and Like box on your website. Its completely customizable, responsive and search engine optimization feeds contents.
6
  * Author: Weblizar
7
  * Author URI: https://www.weblizar.com
function/facebook-feed-shortcode-data.php CHANGED
@@ -1,5 +1,6 @@
1
  <?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
2
  $facebook_feed_fetch = unserialize(get_option("weblizar_facebook_feed_option_settings"));
 
3
  //page url
4
  if(isset($facebook_feed_fetch["ffp_page_url"])) {
5
  $ffp_page_url=$facebook_feed_fetch["ffp_page_url"]; } else { $ffp_page_url="https://www.facebook.com/weblizarstyle/"; }
@@ -17,6 +18,8 @@ if(isset($facebook_feed_fetch["ffp_header_check"])) { $ffp_header_check=$facebo
17
  if($ffp_timeline_layout=='full_width') { $layout1="col-md-12";$layout2="col-md-12"; }
18
  if($ffp_timeline_layout=='half_width') { $layout1="col-md-6";$layout2="col-md-6"; }
19
  if($ffp_timeline_layout=='thumbnail') { $layout1="col-md-9";$layout2="col-md-3"; }
 
 
20
 
21
  $ffp_page_url=str_replace(['https://www.facebook.com/','https://facebook.com/','facebook.com/'],'',$ffp_page_url);
22
  if (strpos($ffp_page_url, '/') !== true) {
@@ -26,8 +29,9 @@ if (strpos($ffp_page_url, '/') !== true) {
26
  if (strpos($ffp_page_url, '?') !== true) {
27
  $ffp_page_url=preg_replace('#\?[^?]*$#', '',$ffp_page_url);
28
  }
 
29
  //deafult token for page
30
- $token="395202813876688|73e8ede72008b231a0322e40f0072fe6";
31
  //header curl url
32
  $header_string="https://graph.facebook.com/v2.10/".$ffp_page_url."?access_token=".$token."&fields=fan_count,cover,picture.width(300),name,link";
33
  //page curl url
1
  <?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
2
  $facebook_feed_fetch = unserialize(get_option("weblizar_facebook_feed_option_settings"));
3
+
4
  //page url
5
  if(isset($facebook_feed_fetch["ffp_page_url"])) {
6
  $ffp_page_url=$facebook_feed_fetch["ffp_page_url"]; } else { $ffp_page_url="https://www.facebook.com/weblizarstyle/"; }
18
  if($ffp_timeline_layout=='full_width') { $layout1="col-md-12";$layout2="col-md-12"; }
19
  if($ffp_timeline_layout=='half_width') { $layout1="col-md-6";$layout2="col-md-6"; }
20
  if($ffp_timeline_layout=='thumbnail') { $layout1="col-md-9";$layout2="col-md-3"; }
21
+ //facebook page id
22
+ if(isset($facebook_feed_fetch["ffp_page_id"])){ $ffp_page_id=$facebook_feed_fetch["ffp_page_id"]; } else { }
23
 
24
  $ffp_page_url=str_replace(['https://www.facebook.com/','https://facebook.com/','facebook.com/'],'',$ffp_page_url);
25
  if (strpos($ffp_page_url, '/') !== true) {
29
  if (strpos($ffp_page_url, '?') !== true) {
30
  $ffp_page_url=preg_replace('#\?[^?]*$#', '',$ffp_page_url);
31
  }
32
+
33
  //deafult token for page
34
+ $token=$ffp_page_id;
35
  //header curl url
36
  $header_string="https://graph.facebook.com/v2.10/".$ffp_page_url."?access_token=".$token."&fields=fan_count,cover,picture.width(300),name,link";
37
  //page curl url
function/facebook-feed.php CHANGED
@@ -9,6 +9,7 @@ if(isset($_POST['security'])) {
9
  'feed_customs_css' => sanitize_text_field($_REQUEST['feed_customs_css']),
10
  'ffp_hover_color' => sanitize_text_field($_REQUEST['ffp_hover_color']),
11
  'ffp_header_check' => sanitize_text_field($_REQUEST['ffp_header_check']),
 
12
  ));
13
  update_option("weblizar_facebook_feed_option_settings", $facebook_feed);
14
  }
@@ -20,7 +21,8 @@ if(isset($facebook_feed_fetch["ffp_timeline_layout"])) { $ffp_timeline_layout=$f
20
  if(isset($facebook_feed_fetch["ffp_page_url"])) { $ffp_page_url=$facebook_feed_fetch["ffp_page_url"]; } else {$ffp_page_url="https://www.facebook.com/weblizarstyle/"; }
21
  if(isset($facebook_feed_fetch["feed_customs_css"])){ $feed_customs_css=$facebook_feed_fetch["feed_customs_css"]; } else { $feed_customs_css=""; }
22
  if(isset($facebook_feed_fetch["ffp_hover_color"])){ $ffp_hover_color=$facebook_feed_fetch["ffp_hover_color"]; } else { $ffp_hover_color="#2e2c2c"; }
23
- if(isset($facebook_feed_fetch["ffp_header_check"])){ $ffp_header_check=$facebook_feed_fetch["ffp_header_check"]; } else { $ffp_header_check="no"; } ?>
 
24
  <!---------------- facebook feed tab------------------------>
25
  <?php $feed_security_action_nonce = wp_create_nonce("feed_security_action"); ?>
26
  <div class="block ui-tabs-panel deactive" id="option-fbfeed">
@@ -43,7 +45,16 @@ if(isset($facebook_feed_fetch["ffp_header_check"])){ $ffp_header_check=$faceboo
43
  </select>
44
  </div>
45
  </div>
46
- <!-- fb type page -->
 
 
 
 
 
 
 
 
 
47
  <div id="ffp_type_page" class="col-md-12 no-pad">
48
  <div>
49
  <div class="ffp_set_l col-md-6"><label> <?php _e('Page url:', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></label></div>
9
  'feed_customs_css' => sanitize_text_field($_REQUEST['feed_customs_css']),
10
  'ffp_hover_color' => sanitize_text_field($_REQUEST['ffp_hover_color']),
11
  'ffp_header_check' => sanitize_text_field($_REQUEST['ffp_header_check']),
12
+ 'ffp_page_id' => sanitize_text_field($_REQUEST['ffp_page_id']),
13
  ));
14
  update_option("weblizar_facebook_feed_option_settings", $facebook_feed);
15
  }
21
  if(isset($facebook_feed_fetch["ffp_page_url"])) { $ffp_page_url=$facebook_feed_fetch["ffp_page_url"]; } else {$ffp_page_url="https://www.facebook.com/weblizarstyle/"; }
22
  if(isset($facebook_feed_fetch["feed_customs_css"])){ $feed_customs_css=$facebook_feed_fetch["feed_customs_css"]; } else { $feed_customs_css=""; }
23
  if(isset($facebook_feed_fetch["ffp_hover_color"])){ $ffp_hover_color=$facebook_feed_fetch["ffp_hover_color"]; } else { $ffp_hover_color="#2e2c2c"; }
24
+ if(isset($facebook_feed_fetch["ffp_header_check"])){ $ffp_header_check=$facebook_feed_fetch["ffp_header_check"]; } else { $ffp_header_check="no"; }
25
+ if(isset($facebook_feed_fetch["ffp_page_id"])){ $ffp_page_id=$facebook_feed_fetch["ffp_page_id"]; } else { } ?>
26
  <!---------------- facebook feed tab------------------------>
27
  <?php $feed_security_action_nonce = wp_create_nonce("feed_security_action"); ?>
28
  <div class="block ui-tabs-panel deactive" id="option-fbfeed">
45
  </select>
46
  </div>
47
  </div>
48
+ <!-- facebook access token-->
49
+ <div id="ffp_type_page" class="col-md-12 no-pad">
50
+ <div>
51
+ <div class="ffp_set_l col-md-6"><label> <?php _e('Facebook Access Token:', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></label></div>
52
+ <div class="ffp_set_l col-md-6"><input type="text" id="ffp_page_id" name="ffp_page_id" value="<?php if(isset($ffp_page_id)) { echo $ffp_page_id;} else { } ?>" style="width:100%"></div>
53
+ <div class="ffp_set_l col-md-6"></div>
54
+ <div class="ffp_set_l col-md-6"><a href="https://weblizar.com/blog/generate-facebook-access-token/" style="width:100%"><?php _e('get your access token.', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></a></div>
55
+ </div>
56
+ </div>
57
+ <!-- fb type page -->
58
  <div id="ffp_type_page" class="col-md-12 no-pad">
59
  <div>
60
  <div class="ffp_set_l col-md-6"><label> <?php _e('Page url:', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></label></div>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.weblizar.com/
4
  Tags: facebook, facebook feed, facebook like box, facebook posts, facebook page, Facebook posts, facebook widget, Facebook profile, Facebook group, facebook page feed, facebook page like box, feed, likebox
5
  Requires at least: 3.8
6
  Tested up to: 4.9.8
7
- Stable tag: 2.7.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -216,6 +216,9 @@ Go to admin dashboard => appearance => widgets => Here are available our two fac
216
 
217
  For more information, see [Weblizar](https://weblizar.com/) .
218
 
 
 
 
219
  = 2.7.6 = [02-11-2018]
220
  1. CSS update
221
  2. Bug fix ( undiffiend offset )
4
  Tags: facebook, facebook feed, facebook like box, facebook posts, facebook page, Facebook posts, facebook widget, Facebook profile, Facebook group, facebook page feed, facebook page like box, feed, likebox
5
  Requires at least: 3.8
6
  Tested up to: 4.9.8
7
+ Stable tag: 2.7.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
216
 
217
  For more information, see [Weblizar](https://weblizar.com/) .
218
 
219
+ = 2.7.7 = [21-11-2018]
220
+ 1. Facebook Access Token field added.
221
+
222
  = 2.7.6 = [02-11-2018]
223
  1. CSS update
224
  2. Bug fix ( undiffiend offset )