WP Facebook Auto Publish - Version 1.4.3

Version Description

= Facebook Auto Publish 1.0.1 = If you had issues with default image used for auto publishing, you may apply this upgrade.

= Facebook Auto Publish 1.0 = First official launch.

Download this release

Release Info

Developer f1logic
Plugin Icon 128x128 WP Facebook Auto Publish
Version 1.4.3
Comparing to
See all releases

Code changes from version 1.4.2 to 1.4.3

admin/about.php CHANGED
@@ -2,6 +2,21 @@
2
  if( !defined('ABSPATH') ){ exit();}
3
  ?>
4
  <style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  </style>
6
 
7
  <h1 style="visibility: visible;">Facebook Auto Publish (V <?php echo xyz_fbap_plugin_get_version(); ?>)</h1>
@@ -69,7 +84,7 @@ Facebook Auto Publish automatically publishes posts from your blog to your Face
69
  </tr>
70
  <!-- Posting Options -->
71
  <tr>
72
- <td rowspan="11"><h4>Posting Options</h4></td>
73
  <td>Publish to facebook profile/pages</td>
74
  <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
75
  </td>
@@ -148,7 +163,13 @@ Facebook Auto Publish automatically publishes posts from your blog to your Face
148
  <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
149
  </td>
150
  </tr>
151
-
 
 
 
 
 
 
152
  <tr>
153
  <td>Enable/Disable SSL peer verification</td>
154
  <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
@@ -161,7 +182,7 @@ Facebook Auto Publish automatically publishes posts from your blog to your Face
161
  <!-- Image Options -->
162
 
163
  <tr>
164
- <td rowspan="3"><h4>Image Options</h4></td>
165
  <td>Publish images along with post content</td>
166
  <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
167
  </td>
@@ -185,12 +206,42 @@ Facebook Auto Publish automatically publishes posts from your blog to your Face
185
  <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
186
  </td>
187
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
 
189
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
190
  <!-- Filter Options -->
191
 
192
  <tr>
193
- <td rowspan="6"><h4>Filter Options</h4></td>
194
  <td>Filter posts to publish based on categories</td>
195
  <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
196
  </td>
@@ -237,6 +288,13 @@ Facebook Auto Publish automatically publishes posts from your blog to your Face
237
  <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
238
  </td>
239
  </tr>
 
 
 
 
 
 
 
240
 
241
  <!-- Scheduling -->
242
 
@@ -317,7 +375,6 @@ Facebook Auto Publish automatically publishes posts from your blog to your Face
317
  <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
318
  </td>
319
  </tr>
320
-
321
  <!-- Addons and Support -->
322
  <tr>
323
  <td rowspan="2"><h4>Addon Features</h4></td>
@@ -334,6 +391,18 @@ Facebook Auto Publish automatically publishes posts from your blog to your Face
334
  <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
335
  </td>
336
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
337
 
338
  </table>
339
  <br/>
2
  if( !defined('ABSPATH') ){ exit();}
3
  ?>
4
  <style>
5
+ .buy-button {
6
+ display:block;
7
+ color:white;
8
+ padding:5px 21px;
9
+ background: #545454;
10
+ border: 0;
11
+ border-bottom: 2px solid #545454;
12
+ cursor: pointer;
13
+ -webkit-box-shadow: inset 0 -2px #545454;
14
+ box-shadow: inset 0 -2px #545454;
15
+ text-decoration: none;
16
+ font-size: 14px;
17
+ font-weight: bold;
18
+ border-radius:3px;
19
+ }
20
  </style>
21
 
22
  <h1 style="visibility: visible;">Facebook Auto Publish (V <?php echo xyz_fbap_plugin_get_version(); ?>)</h1>
84
  </tr>
85
  <!-- Posting Options -->
86
  <tr>
87
+ <td rowspan="12"><h4>Posting Options</h4></td>
88
  <td>Publish to facebook profile/pages</td>
89
  <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
90
  </td>
163
  <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
164
  </td>
165
  </tr>
166
+ <tr>
167
+ <td>Option to use post tags as hash tags</td>
168
+ <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
169
+ </td>
170
+ <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
171
+ </td>
172
+ </tr>
173
  <tr>
174
  <td>Enable/Disable SSL peer verification</td>
175
  <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
182
  <!-- Image Options -->
183
 
184
  <tr>
185
+ <td rowspan="5"><h4>Image Options</h4></td>
186
  <td>Publish images along with post content</td>
187
  <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
188
  </td>
206
  <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
207
  </td>
208
  </tr>
209
+ <tr>
210
+ <td>Publish multiple images to facebook and twitter along with post content</td>
211
+ <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
212
+ </td>
213
+ <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
214
+ </td>
215
+ </tr>
216
+ <tr>
217
+ <td>Option to specify multiphoto preference from post content and post meta</td>
218
+ <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
219
+ </td>
220
+ <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
221
+ </td>
222
+ </tr>
223
 
224
+ <!-- Video Options -->
225
+ <tr>
226
+ <td rowspan="2"><h4>Video Options</h4></td>
227
+ <td>Publish video to facebook and twitter along with post content</td>
228
+ <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
229
+ </td>
230
+ <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
231
+ </td>
232
+ </tr>
233
+
234
+ <tr>
235
+ <td>Option to specify preference from post content, post meta and open graph tags</td>
236
+ <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
237
+ </td>
238
+ <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
239
+ </td>
240
+ </tr>
241
  <!-- Filter Options -->
242
 
243
  <tr>
244
+ <td rowspan="7"><h4>Filter Options</h4></td>
245
  <td>Filter posts to publish based on categories</td>
246
  <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
247
  </td>
288
  <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
289
  </td>
290
  </tr>
291
+ <tr>
292
+ <td>Override auto publish scheduling for individual accounts</td>
293
+ <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
294
+ </td>
295
+ <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
296
+ </td>
297
+ </tr>
298
 
299
  <!-- Scheduling -->
300
 
375
  <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
376
  </td>
377
  </tr>
 
378
  <!-- Addons and Support -->
379
  <tr>
380
  <td rowspan="2"><h4>Addon Features</h4></td>
391
  <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
392
  </td>
393
  </tr>
394
+ <tr>
395
+ <td rowspan="2"><h4>Other</h4></td>
396
+ <td>Price</td>
397
+ <td>FREE</td>
398
+ <td>Starts from 39 USD</td>
399
+ </tr>
400
+ <tr>
401
+ <td>Purchase</td>
402
+ <td></td>
403
+ <td style="padding: 2px" ><a target="_blank"href="https://xyzscripts.com/members/product/purchase/XYZWPSMPPRE" class="buy-button">Buy Now</a>
404
+ </td>
405
+ </tr>
406
 
407
  </table>
408
  <br/>
admin/destruction.php CHANGED
@@ -53,6 +53,8 @@ function fbap_free_destroy()
53
  delete_option('xyz_fbap_utf_decode_enable');
54
  delete_option('xyz_fbap_caption_for_fb_attachment');
55
  delete_option('xyz_fbap_fb_numericid');
 
 
56
  }
57
 
58
  register_uninstall_hook(XYZ_FBAP_PLUGIN_FILE,'fbap_free_network_destroy');
53
  delete_option('xyz_fbap_utf_decode_enable');
54
  delete_option('xyz_fbap_caption_for_fb_attachment');
55
  delete_option('xyz_fbap_fb_numericid');
56
+ delete_option('fbap_installed_date');
57
+ delete_option('xyz_fbap_dnt_shw_notice');
58
  }
59
 
60
  register_uninstall_hook(XYZ_FBAP_PLUGIN_FILE,'fbap_free_network_destroy');
admin/footer.php CHANGED
@@ -7,7 +7,7 @@ if(get_option('xyz_fbap_premium_version_ads')==1){?>
7
  <h2 style="vertical-align: middle;">
8
  <a target="_blank"
9
  href="http://xyzscripts.com/wordpress-plugins/social-media-auto-publish/features">Fully
10
- Featured XYZ WP SMAP Premium Plugin</a> - Just 29 USD
11
  </h2>
12
  </div>
13
  <div style="float: left; margin-top: 3px">
@@ -163,7 +163,9 @@ Our Plugins :
163
  <a target="_blank" href="http://wordpress.org/plugins/quick-box-popup/">Quick Box Popup</a> ★
164
  <a target="_blank" href="http://wordpress.org/plugins/social-media-auto-publish/">Social Media Auto Publish</a> ★
165
  <a target="_blank" href="http://wordpress.org/plugins/twitter-auto-publish/">Twitter Auto Publish</a> ★
166
- <a target="_blank" href="http://wordpress.org/plugins/custom-field-manager/">Custom Field Manager</a>
 
 
167
  </div>
168
 
169
  <div style="padding-top: 10px;text-align: center;">
7
  <h2 style="vertical-align: middle;">
8
  <a target="_blank"
9
  href="http://xyzscripts.com/wordpress-plugins/social-media-auto-publish/features">Fully
10
+ Featured XYZ WP SMAP Premium Plugin</a> - Just 39 USD
11
  </h2>
12
  </div>
13
  <div style="float: left; margin-top: 3px">
163
  <a target="_blank" href="http://wordpress.org/plugins/quick-box-popup/">Quick Box Popup</a> ★
164
  <a target="_blank" href="http://wordpress.org/plugins/social-media-auto-publish/">Social Media Auto Publish</a> ★
165
  <a target="_blank" href="http://wordpress.org/plugins/twitter-auto-publish/">Twitter Auto Publish</a> ★
166
+ <a target="_blank" href="http://wordpress.org/plugins/custom-field-manager/">Custom Field Manager</a>
167
+ <a target="_blank" href="http://wordpress.org/plugins/wp-filter-posts/">WP Filter Posts</a> ★
168
+ <a target="_blank" href="https://wordpress.org/plugins/wp-gallery-manager/">WP Gallery Manager</a>
169
  </div>
170
 
171
  <div style="padding-top: 10px;text-align: center;">
admin/header.php CHANGED
@@ -8,7 +8,7 @@ if(get_option('xyz_fbap_premium_version_ads')==1){?>
8
  <h2 style="vertical-align: middle;">
9
  <a target="_blank"
10
  href="http://xyzscripts.com/wordpress-plugins/social-media-auto-publish/features">Fully
11
- Featured XYZ WP SMAP Premium Plugin</a> - Just 29 USD
12
  </h2>
13
  </div>
14
  <div style="float: left; margin-top: 3px">
8
  <h2 style="vertical-align: middle;">
9
  <a target="_blank"
10
  href="http://xyzscripts.com/wordpress-plugins/social-media-auto-publish/features">Fully
11
+ Featured XYZ WP SMAP Premium Plugin</a> - Just 39 USD
12
  </h2>
13
  </div>
14
  <div style="float: left; margin-top: 3px">
admin/metabox.php CHANGED
@@ -232,7 +232,8 @@ function inArray(needle, haystack) {
232
  - Insert the excerpt of your post.<br />{POST_CONTENT} - Insert
233
  the description of your post.<br />{BLOG_TITLE} - Insert the name
234
  of your blog.<br />{USER_NICENAME} - Insert the nicename
235
- of the author.
 
236
  </div>
237
  </td>
238
  <td>
@@ -244,6 +245,8 @@ function inArray(needle, haystack) {
244
  <option value ="4">{POST_CONTENT} </option>
245
  <option value ="5">{BLOG_TITLE} </option>
246
  <option value ="6">{USER_NICENAME} </option>
 
 
247
  </select> </td></tr>
248
 
249
  <tr id="fpabpmftarea"><td>&nbsp;</td><td>
232
  - Insert the excerpt of your post.<br />{POST_CONTENT} - Insert
233
  the description of your post.<br />{BLOG_TITLE} - Insert the name
234
  of your blog.<br />{USER_NICENAME} - Insert the nicename
235
+ of the author.<br />{POST_ID} - Insert the ID of your post.
236
+ <br />{POST_PUBLISH_DATE} - Insert the publish date of your post.
237
  </div>
238
  </td>
239
  <td>
245
  <option value ="4">{POST_CONTENT} </option>
246
  <option value ="5">{BLOG_TITLE} </option>
247
  <option value ="6">{USER_NICENAME} </option>
248
+ <option value ="7">{POST_ID} </option>
249
+ <option value ="8">{POST_PUBLISH_DATE} </option>
250
  </select> </td></tr>
251
 
252
  <tr id="fpabpmftarea"><td>&nbsp;</td><td>
admin/publish.php CHANGED
@@ -194,6 +194,7 @@ function xyz_fbap_link_publish($post_ID) {
194
  $excerpt = apply_filters('the_excerpt', $excerpt);
195
  $excerpt = html_entity_decode($excerpt, ENT_QUOTES, get_bloginfo('charset'));
196
  $content = preg_replace('/<script\b[^>]*>(.*?)<\/script>/is', "", $content);
 
197
  $content = preg_replace('/\[.+?\]/', '', $content);
198
  $excerpt = preg_replace('/<script\b[^>]*>(.*?)<\/script>/is', "", $excerpt);
199
 
@@ -214,7 +215,6 @@ function xyz_fbap_link_publish($post_ID) {
214
  $excerpt=strip_shortcodes($excerpt);
215
  }
216
  $description = $content;
217
-
218
  $description_org=$description;
219
 
220
  $attachmenturl=xyz_fbap_getimage($post_ID, $postpp->post_content);
@@ -282,7 +282,9 @@ function xyz_fbap_link_publish($post_ID) {
282
  $message4=str_replace('{POST_EXCERPT}', $excerpt, $message3);
283
  $message5=str_replace('{POST_CONTENT}', $description, $message4);
284
  $message5=str_replace('{USER_NICENAME}', $user_nicename, $message5);
285
-
 
 
286
  $message5=str_replace("&nbsp;","",$message5);
287
 
288
  $disp_type="feed";
194
  $excerpt = apply_filters('the_excerpt', $excerpt);
195
  $excerpt = html_entity_decode($excerpt, ENT_QUOTES, get_bloginfo('charset'));
196
  $content = preg_replace('/<script\b[^>]*>(.*?)<\/script>/is', "", $content);
197
+ $content= preg_replace("/\\[caption.*?\\].*?\\[.caption\\]/is", '', $content);
198
  $content = preg_replace('/\[.+?\]/', '', $content);
199
  $excerpt = preg_replace('/<script\b[^>]*>(.*?)<\/script>/is', "", $excerpt);
200
 
215
  $excerpt=strip_shortcodes($excerpt);
216
  }
217
  $description = $content;
 
218
  $description_org=$description;
219
 
220
  $attachmenturl=xyz_fbap_getimage($post_ID, $postpp->post_content);
282
  $message4=str_replace('{POST_EXCERPT}', $excerpt, $message3);
283
  $message5=str_replace('{POST_CONTENT}', $description, $message4);
284
  $message5=str_replace('{USER_NICENAME}', $user_nicename, $message5);
285
+ $publish_time=get_the_time('Y/m/d',$post_ID );
286
+ $message5=str_replace('{POST_PUBLISH_DATE}', $publish_time, $message5);
287
+ $message5=str_replace('{POST_ID}', $post_ID, $message5);
288
  $message5=str_replace("&nbsp;","",$message5);
289
 
290
  $disp_type="feed";
admin/settings.php CHANGED
@@ -312,7 +312,8 @@ function dethide(id)
312
  - Insert the excerpt of your post.<br />{POST_CONTENT} - Insert
313
  the description of your post.<br />{BLOG_TITLE} - Insert the name
314
  of your blog.<br />{USER_NICENAME} - Insert the nicename
315
- of the author.
 
316
  </div></td>
317
  <td>
318
  <select name="xyz_fbap_info" id="xyz_fbap_info" onchange="xyz_fbap_info_insert(this)">
@@ -323,6 +324,8 @@ function dethide(id)
323
  <option value ="4">{POST_CONTENT} </option>
324
  <option value ="5">{BLOG_TITLE} </option>
325
  <option value ="6">{USER_NICENAME} </option>
 
 
326
  </select> </td></tr><tr><td>&nbsp;</td><td>
327
  <textarea id="xyz_fbap_message" name="xyz_fbap_message" style="height:80px !important;" ><?php if($ms4==""){
328
  echo esc_textarea(get_option('xyz_fbap_message'));}?></textarea>
312
  - Insert the excerpt of your post.<br />{POST_CONTENT} - Insert
313
  the description of your post.<br />{BLOG_TITLE} - Insert the name
314
  of your blog.<br />{USER_NICENAME} - Insert the nicename
315
+ of the author.<br />{POST_ID} - Insert the ID of your post.
316
+ <br />{POST_PUBLISH_DATE} - Insert the publish date of your post.
317
  </div></td>
318
  <td>
319
  <select name="xyz_fbap_info" id="xyz_fbap_info" onchange="xyz_fbap_info_insert(this)">
324
  <option value ="4">{POST_CONTENT} </option>
325
  <option value ="5">{BLOG_TITLE} </option>
326
  <option value ="6">{USER_NICENAME} </option>
327
+ <option value ="7">{POST_ID} </option>
328
+ <option value ="8">{POST_PUBLISH_DATE} </option>
329
  </select> </td></tr><tr><td>&nbsp;</td><td>
330
  <textarea id="xyz_fbap_message" name="xyz_fbap_message" style="height:80px !important;" ><?php if($ms4==""){
331
  echo esc_textarea(get_option('xyz_fbap_message'));}?></textarea>
facebook-auto-publish.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Facebook Auto Publish
4
  Plugin URI: http://xyzscripts.com/wordpress-plugins/facebook-auto-publish/
5
  Description: Publish posts automatically from your blog to Facebook social media. You can publish your posts to Facebook as simple text message, text message with image or as attached link to your blog. The plugin supports filtering posts by custom post-types and categories.
6
- Version: 1.4.2
7
  Author: xyzscripts.com
8
  Author URI: http://xyzscripts.com/
9
  License: GPLv2 or later
3
  Plugin Name: Facebook Auto Publish
4
  Plugin URI: http://xyzscripts.com/wordpress-plugins/facebook-auto-publish/
5
  Description: Publish posts automatically from your blog to Facebook social media. You can publish your posts to Facebook as simple text message, text message with image or as attached link to your blog. The plugin supports filtering posts by custom post-types and categories.
6
+ Version: 1.4.3
7
  Author: xyzscripts.com
8
  Author URI: http://xyzscripts.com/
9
  License: GPLv2 or later
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: f1logic
3
  Donate link: http://xyzscripts.com/donate/
4
  Tags: facebook, facebook auto publish, publish post to facebook, add link to facebook, facebook publishing, post to facebook, post to fb, social media auto publish, social media publishing, social network auto publish, social media, social network
5
  Requires at least: 3.0
6
- Tested up to: 4.7.3
7
- Stable tag: 1.4.2
8
  License: GPLv2 or later
9
 
10
  Publish posts automatically to Facebook page or profile.
@@ -56,6 +56,8 @@ The supported post elements which can be published are given below.
56
  Permalink
57
  Blog title
58
  User nicename
 
 
59
 
60
 
61
  = About =
@@ -124,6 +126,9 @@ SSL peer verification may not be functioning in your server. Please turn off SSL
124
 
125
  == Changelog ==
126
 
 
 
 
127
  = Facebook Auto Publish 1.4.2 =
128
  * Fixed facebook boost unavailable issue
129
  * Nonce added
3
  Donate link: http://xyzscripts.com/donate/
4
  Tags: facebook, facebook auto publish, publish post to facebook, add link to facebook, facebook publishing, post to facebook, post to fb, social media auto publish, social media publishing, social network auto publish, social media, social network
5
  Requires at least: 3.0
6
+ Tested up to: 4.8
7
+ Stable tag: 1.4.3
8
  License: GPLv2 or later
9
 
10
  Publish posts automatically to Facebook page or profile.
56
  Permalink
57
  Blog title
58
  User nicename
59
+ Post ID
60
+ Post publish date
61
 
62
 
63
  = About =
126
 
127
  == Changelog ==
128
 
129
+ = Facebook Auto Publish 1.4.3 =
130
+ * Added POST_ID and POST_PUBLISH_DATE in message formats
131
+
132
  = Facebook Auto Publish 1.4.2 =
133
  * Fixed facebook boost unavailable issue
134
  * Nonce added