Version Description
- Fixed: Empty post bug
- Changed: Default API keys
- Fixed: Bug on setting API keys from options
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.0.33 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.32 to 1.0.33
- admin/views/FFWDViewInfo_ffwd.php +0 -2
- admin/views/FFWDViewOptions_ffwd.php +5 -5
- facebook-feed-wd.php +4 -4
- framework/WDFacebookFeed.php +34 -6
- readme.txt +6 -1
admin/views/FFWDViewInfo_ffwd.php
CHANGED
|
@@ -676,8 +676,6 @@ class FFWDViewInfo_ffwd
|
|
| 676 |
</option>
|
| 677 |
</select>
|
| 678 |
<br>
|
| 679 |
-
<label for="" class="ffwd_pro_only">Profile Type is Available Only in PRO
|
| 680 |
-
version</label>
|
| 681 |
</td>
|
| 682 |
</tr>
|
| 683 |
</tbody>
|
| 676 |
</option>
|
| 677 |
</select>
|
| 678 |
<br>
|
|
|
|
|
|
|
| 679 |
</td>
|
| 680 |
</tr>
|
| 681 |
</tbody>
|
admin/views/FFWDViewOptions_ffwd.php
CHANGED
|
@@ -119,12 +119,12 @@ class FFWDViewOptions_ffwd
|
|
| 119 |
|
| 120 |
</td>
|
| 121 |
</tr>
|
| 122 |
-
|
| 123 |
<td class="spider_label_options">
|
| 124 |
<label for="facebook_log_in">Facebook login / logout: </label>
|
| 125 |
</td>
|
| 126 |
<td>
|
| 127 |
-
<?php echo $this->model->log_in_log_out(); ?>
|
| 128 |
</td>
|
| 129 |
</tr>
|
| 130 |
|
|
@@ -135,15 +135,15 @@ class FFWDViewOptions_ffwd
|
|
| 135 |
<td>
|
| 136 |
<input type="number" id="autoupdate_interval_hour" class="spider_int_input"
|
| 137 |
name="autoupdate_interval_hour" min="0" max="24"
|
| 138 |
-
value="<?php echo floor($row->autoupdate_interval / 60); ?>"/>
|
| 139 |
hour
|
| 140 |
<input type="number" id="autoupdate_interval_min" class="spider_int_input"
|
| 141 |
name="autoupdate_interval_min" min="0" max="59"
|
| 142 |
-
value="<?php echo floor($row->autoupdate_interval % 60); ?>"/>
|
| 143 |
min
|
| 144 |
<div class="spider_description">Minimum 1 min.</div>
|
| 145 |
</td>
|
| 146 |
-
</tr
|
| 147 |
<tr>
|
| 148 |
<td class="spider_label_options">
|
| 149 |
<label>Timezone:</label>
|
| 119 |
|
| 120 |
</td>
|
| 121 |
</tr>
|
| 122 |
+
<!--<tr>
|
| 123 |
<td class="spider_label_options">
|
| 124 |
<label for="facebook_log_in">Facebook login / logout: </label>
|
| 125 |
</td>
|
| 126 |
<td>
|
| 127 |
+
<?php //echo $this->model->log_in_log_out(); ?>
|
| 128 |
</td>
|
| 129 |
</tr>
|
| 130 |
|
| 135 |
<td>
|
| 136 |
<input type="number" id="autoupdate_interval_hour" class="spider_int_input"
|
| 137 |
name="autoupdate_interval_hour" min="0" max="24"
|
| 138 |
+
value="<?php //echo floor($row->autoupdate_interval / 60); ?>"/>
|
| 139 |
hour
|
| 140 |
<input type="number" id="autoupdate_interval_min" class="spider_int_input"
|
| 141 |
name="autoupdate_interval_min" min="0" max="59"
|
| 142 |
+
value="<?php //echo floor($row->autoupdate_interval % 60); ?>"/>
|
| 143 |
min
|
| 144 |
<div class="spider_description">Minimum 1 min.</div>
|
| 145 |
</td>
|
| 146 |
+
</tr>-->
|
| 147 |
<tr>
|
| 148 |
<td class="spider_label_options">
|
| 149 |
<label>Timezone:</label>
|
facebook-feed-wd.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
* Plugin Name: WD Facebook Feed
|
| 5 |
* Plugin URI: https://web-dorado.com/products/wordpress-facebook-feed-plugin.html
|
| 6 |
* Description:WD Facebook Feed is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website.
|
| 7 |
-
* Version: 1.0.
|
| 8 |
* Author: WebDorado
|
| 9 |
* Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
|
| 10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
|
@@ -866,7 +866,7 @@ function wd_fb_add_autoupdate_interval( $schedules ) {
|
|
| 866 |
|
| 867 |
$autoupdate_interval=1;
|
| 868 |
if($page!='uninstall_ffwd')
|
| 869 |
-
$autoupdate_interval = WDFacebookFeed::get_autoupdate_interval();
|
| 870 |
// var_dump($autoupdate_interval);
|
| 871 |
$schedules['wd_fb_autoupdate_interval'] = array(
|
| 872 |
'interval' => 60 * $autoupdate_interval,
|
|
@@ -882,7 +882,7 @@ function wd_fb_update($from_plugin=0) {
|
|
| 882 |
|
| 883 |
$current_time=current_time('timestamp');
|
| 884 |
$update_time=get_option('ffwd_autoupdate_time');
|
| 885 |
-
$autoupdate_interval = WDFacebookFeed::get_autoupdate_interval();
|
| 886 |
if(!$update_time)
|
| 887 |
update_option('ffwd_autoupdate_time',$autoupdate_interval*60+$current_time);
|
| 888 |
|
|
@@ -1000,7 +1000,7 @@ if ( !function_exists('wd_bps_install_notice_status') ) {
|
|
| 1000 |
|
| 1001 |
function ffwd_version() {
|
| 1002 |
|
| 1003 |
-
$version = '1.0.
|
| 1004 |
|
| 1005 |
if ( get_option( 'ffwd_version' ) === false ) {
|
| 1006 |
add_option( 'ffwd_version', $version );
|
| 4 |
* Plugin Name: WD Facebook Feed
|
| 5 |
* Plugin URI: https://web-dorado.com/products/wordpress-facebook-feed-plugin.html
|
| 6 |
* Description:WD Facebook Feed is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website.
|
| 7 |
+
* Version: 1.0.33
|
| 8 |
* Author: WebDorado
|
| 9 |
* Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
|
| 10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 866 |
|
| 867 |
$autoupdate_interval=1;
|
| 868 |
if($page!='uninstall_ffwd')
|
| 869 |
+
$autoupdate_interval = 1440; //WDFacebookFeed::get_autoupdate_interval();
|
| 870 |
// var_dump($autoupdate_interval);
|
| 871 |
$schedules['wd_fb_autoupdate_interval'] = array(
|
| 872 |
'interval' => 60 * $autoupdate_interval,
|
| 882 |
|
| 883 |
$current_time=current_time('timestamp');
|
| 884 |
$update_time=get_option('ffwd_autoupdate_time');
|
| 885 |
+
$autoupdate_interval = 1440;//WDFacebookFeed::get_autoupdate_interval();
|
| 886 |
if(!$update_time)
|
| 887 |
update_option('ffwd_autoupdate_time',$autoupdate_interval*60+$current_time);
|
| 888 |
|
| 1000 |
|
| 1001 |
function ffwd_version() {
|
| 1002 |
|
| 1003 |
+
$version = '1.0.33';
|
| 1004 |
|
| 1005 |
if ( get_option( 'ffwd_version' ) === false ) {
|
| 1006 |
add_option( 'ffwd_version', $version );
|
framework/WDFacebookFeed.php
CHANGED
|
@@ -44,7 +44,27 @@ class WDFacebookFeed {
|
|
| 44 |
'209804229584368|3a2d59f876e0df3d42d829f8a1569636',
|
| 45 |
'522842584751334|de7e0895060a9e2bf6e972a17626ce1d',
|
| 46 |
'623116398019349|4d4c0f3404ce3baa9d07d525be0f2d65',
|
| 47 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
);
|
| 49 |
|
| 50 |
protected static $save = true;
|
|
@@ -485,11 +505,11 @@ $ffwd_info_options[$ffwd_option_db] =((isset($_POST[$ffwd_option_db])) ? esc_htm
|
|
| 485 |
public static function page() {
|
| 486 |
self::$content_url = ((isset($_POST['content_url'])) ? esc_html(stripslashes($_POST['content_url'])) : '');
|
| 487 |
self::$limit = ((isset($_POST['limit'])) ? esc_html(stripslashes($_POST['limit'])) : '');
|
| 488 |
-
self::check_fb_page_url();
|
| 489 |
-
// If user exists => set content.
|
| 490 |
-
self::set_content();
|
| 491 |
-
// If right content => set access_token.
|
| 492 |
self::set_access_token();
|
|
|
|
|
|
|
|
|
|
|
|
|
| 493 |
// If right access_token => call function.
|
| 494 |
$function_name = self::$content_type;
|
| 495 |
self::$function_name();
|
|
@@ -593,7 +613,12 @@ $ffwd_info_options[$ffwd_option_db] =((isset($_POST[$ffwd_option_db])) ? esc_htm
|
|
| 593 |
self::$access_token = esc_html(stripslashes($fb_option_data->access_token));
|
| 594 |
|
| 595 |
}
|
| 596 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 597 |
}
|
| 598 |
|
| 599 |
public static function check_fb_page_url() {
|
|
@@ -687,6 +712,9 @@ $ffwd_info_options[$ffwd_option_db] =((isset($_POST[$ffwd_option_db])) ? esc_htm
|
|
| 687 |
if(self::$timeline_type == 'others' && self::$id == $next['from']['id'])
|
| 688 |
continue;
|
| 689 |
|
|
|
|
|
|
|
|
|
|
| 690 |
if(count(self::$complite_timeline_data) < self::$limit)
|
| 691 |
array_push(self::$complite_timeline_data, $next);
|
| 692 |
}
|
| 44 |
'209804229584368|3a2d59f876e0df3d42d829f8a1569636',
|
| 45 |
'522842584751334|de7e0895060a9e2bf6e972a17626ce1d',
|
| 46 |
'623116398019349|4d4c0f3404ce3baa9d07d525be0f2d65',
|
| 47 |
+
'462859190728873|55b52362578b8475e12486816fba3b08',
|
| 48 |
+
'1907658946156725|772c0f8e45a3e7ce70e66a93763e3c1e',
|
| 49 |
+
'1856176344702073|518810088891d8dd77f65519909e1552',
|
| 50 |
+
'1568389583234881|d76357cd1a2639bcdf4abbe3c3d12d52',
|
| 51 |
+
'1337518309701023|118cb47c5661be524a50a597ea013c85',
|
| 52 |
+
'263377707476536|b091b6e1769d6b8a9e79ed7472394943',
|
| 53 |
+
'2035553139992018|20faa0abffc02f00ef1cac3f82e6e8b6',
|
| 54 |
+
'433829403627911|94d292a128ef6231fa2a25b3f43d520d',
|
| 55 |
+
'1785723671755597|8bea3b6d606eba041bc8d300c0530b10',
|
| 56 |
+
'1360249327365720|29097e215fae42483319ffa6fa78e5dd',
|
| 57 |
+
'706861409474127|c8e30a19bb18713acf3b637061323914',
|
| 58 |
+
'193040531189876|d01897c23430b75d6c51a95f3586a688',
|
| 59 |
+
'239405206526053|617592294eacdc07943a1e0ecbf69eab',
|
| 60 |
+
'1465318366846430|ce12c0e2e8e768b5f66eadd8e157e123',
|
| 61 |
+
'1332501960106748|5c00e11412c36ce741e5bb051d3d948e',
|
| 62 |
+
'1303503889682231|6a947d424fc7e2fd373568ed92c3c9de', // App version 2.4
|
| 63 |
+
'1005694739559398|b32df5b3f7cecd1105e028abe1bc7ef6',
|
| 64 |
+
'274394046295054|2fbdbe248092c63f812e0e1d6dbe0f2b',
|
| 65 |
+
'1739880636336728|e786c42c6cbe13b28b8f4a83afbebbcd',
|
| 66 |
+
'1683088998649596|73282ca4410752d64621e693cc19524e',
|
| 67 |
+
'987113411398480|3e2d346234b086dba07e5c6f5c87caaa',
|
| 68 |
);
|
| 69 |
|
| 70 |
protected static $save = true;
|
| 505 |
public static function page() {
|
| 506 |
self::$content_url = ((isset($_POST['content_url'])) ? esc_html(stripslashes($_POST['content_url'])) : '');
|
| 507 |
self::$limit = ((isset($_POST['limit'])) ? esc_html(stripslashes($_POST['limit'])) : '');
|
|
|
|
|
|
|
|
|
|
|
|
|
| 508 |
self::set_access_token();
|
| 509 |
+
self::check_fb_page_url();
|
| 510 |
+
// If user exists => set content.
|
| 511 |
+
self::set_content();
|
| 512 |
+
// If right content => set access_token.
|
| 513 |
// If right access_token => call function.
|
| 514 |
$function_name = self::$content_type;
|
| 515 |
self::$function_name();
|
| 613 |
self::$access_token = esc_html(stripslashes($fb_option_data->access_token));
|
| 614 |
|
| 615 |
}
|
| 616 |
+
|
| 617 |
+
if (!empty($fb_option_data->app_id) && !empty($fb_option_data->app_secret)) {
|
| 618 |
+
self::$access_token = $fb_option_data->app_id . '|' . $fb_option_data->app_secret;
|
| 619 |
+
}
|
| 620 |
+
|
| 621 |
+
self::$exist_access = $exist_access;
|
| 622 |
}
|
| 623 |
|
| 624 |
public static function check_fb_page_url() {
|
| 712 |
if(self::$timeline_type == 'others' && self::$id == $next['from']['id'])
|
| 713 |
continue;
|
| 714 |
|
| 715 |
+
if($next['type']=='status' && !isset($next['description']) && !isset($next['message']) && !isset($next['name']))
|
| 716 |
+
continue;
|
| 717 |
+
|
| 718 |
if(count(self::$complite_timeline_data) < self::$limit)
|
| 719 |
array_push(self::$complite_timeline_data, $next);
|
| 720 |
}
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Tags: customizable facebook feed, facebook, facebook events, facebook feed, face
|
|
| 4 |
Requires at least: 3.4
|
| 5 |
Requires PHP: 5.2
|
| 6 |
Tested up to: 4.9
|
| 7 |
-
Stable tag: 1.0.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -99,6 +99,11 @@ If you think you found a bug in WD Facebook Feed or have any problem/question co
|
|
| 99 |
|
| 100 |
== Changelog ==
|
| 101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
= 1.0.32 =
|
| 103 |
* Important: Facebook API has been changed on without any warning, and now it does not allow bringing posts from public groups.
|
| 104 |
|
| 4 |
Requires at least: 3.4
|
| 5 |
Requires PHP: 5.2
|
| 6 |
Tested up to: 4.9
|
| 7 |
+
Stable tag: 1.0.33
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 99 |
|
| 100 |
== Changelog ==
|
| 101 |
|
| 102 |
+
= 1.0.33 =
|
| 103 |
+
* Fixed: Empty post bug
|
| 104 |
+
* Changed: Default API keys
|
| 105 |
+
* Fixed: Bug on setting API keys from options
|
| 106 |
+
|
| 107 |
= 1.0.32 =
|
| 108 |
* Important: Facebook API has been changed on without any warning, and now it does not allow bringing posts from public groups.
|
| 109 |
|
