WP Facebook Auto Publish - Version 1.4.5

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.5
Comparing to
See all releases

Code changes from version 1.4.4 to 1.4.5

admin/about.php CHANGED
@@ -377,7 +377,7 @@ Facebook Auto Publish automatically publishes posts from your blog to your Face
377
  </tr>
378
  <!-- Addons and Support -->
379
  <tr>
380
- <td rowspan="2"><h4>Addon Features</h4></td>
381
  <td>Advanced Autopublish Scheduler</td>
382
  <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
383
  </td>
@@ -391,6 +391,13 @@ Facebook Auto Publish automatically publishes posts from your blog to your Face
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>
377
  </tr>
378
  <!-- Addons and Support -->
379
  <tr>
380
+ <td rowspan="3"><h4>Addon Features</h4></td>
381
  <td>Advanced Autopublish Scheduler</td>
382
  <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
383
  </td>
391
  <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
392
  </td>
393
  </tr>
394
+ <tr>
395
+ <td>Privilege Management</td>
396
+ <td><img src="<?php echo plugins_url("images/cross.png",__FILE__);?>">
397
+ </td>
398
+ <td><img src="<?php echo plugins_url("images/tick.png",__FILE__);?>">
399
+ </td>
400
+ </tr>
401
  <tr>
402
  <td rowspan="2"><h4>Other</h4></td>
403
  <td>Price</td>
admin/authorization.php CHANGED
@@ -3,7 +3,6 @@ if( !defined('ABSPATH') ){ exit();}
3
  $app_id = get_option('xyz_fbap_application_id');
4
  $app_secret = get_option('xyz_fbap_application_secret');
5
  $redirecturl=admin_url('admin.php?page=facebook-auto-publish-settings&auth=1');
6
- $lnredirecturl=admin_url('admin.php?page=facebook-auto-publish-settings&auth=3');
7
 
8
  $my_url=urlencode($redirecturl);
9
 
3
  $app_id = get_option('xyz_fbap_application_id');
4
  $app_secret = get_option('xyz_fbap_application_secret');
5
  $redirecturl=admin_url('admin.php?page=facebook-auto-publish-settings&auth=1');
 
6
 
7
  $my_url=urlencode($redirecturl);
8
 
admin/destruction.php CHANGED
@@ -51,7 +51,6 @@ function fbap_free_destroy()
51
  delete_option('xyz_twap_premium_version_ads');
52
  delete_option('xyz_fbap_default_selection_edit');
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');
51
  delete_option('xyz_twap_premium_version_ads');
52
  delete_option('xyz_fbap_default_selection_edit');
53
  delete_option('xyz_fbap_utf_decode_enable');
 
54
  delete_option('xyz_fbap_fb_numericid');
55
  delete_option('fbap_installed_date');
56
  delete_option('xyz_fbap_dnt_shw_notice');
admin/install.php CHANGED
@@ -56,7 +56,6 @@ function fbap_install_free()
56
  add_option('xyz_fbap_pages_ids','-1');
57
  add_option('xyz_fbap_future_to_publish', '1');
58
  add_option('xyz_fbap_apply_filters', '');
59
- add_option('xyz_fbap_caption_for_fb_attachment', 1);
60
  add_option('xyz_fbap_fb_numericid','');
61
  $version=get_option('xyz_fbap_free_version');
62
  $currentversion=xyz_fbap_plugin_get_version();
56
  add_option('xyz_fbap_pages_ids','-1');
57
  add_option('xyz_fbap_future_to_publish', '1');
58
  add_option('xyz_fbap_apply_filters', '');
 
59
  add_option('xyz_fbap_fb_numericid','');
60
  $version=get_option('xyz_fbap_free_version');
61
  $currentversion=xyz_fbap_plugin_get_version();
admin/publish.php CHANGED
@@ -63,7 +63,7 @@ function xyz_fbap_link_publish($post_ID) {
63
  $_POST=$_POST_CPY;
64
  return ;
65
 
66
- } else if (isset($_POST['_inline_edit']) AND (get_option('xyz_fbap_default_selection_edit') == 0) ) {
67
  $_POST=$_POST_CPY;
68
  return;
69
  }
@@ -227,11 +227,7 @@ function xyz_fbap_link_publish($post_ID) {
227
 
228
  $xyz_fbap_caption_for_fb_attachment=get_option('xyz_fbap_caption_for_fb_attachment');
229
 
230
- if($xyz_fbap_caption_for_fb_attachment==1)
231
- $caption=$_SERVER['HTTP_HOST'];
232
- else
233
- $caption=get_bloginfo('title');
234
-
235
  $caption = html_entity_decode($caption, ENT_QUOTES, get_bloginfo('charset'));
236
 
237
  if($tit_flag==1)
@@ -293,12 +289,8 @@ function xyz_fbap_link_publish($post_ID) {
293
  $attachment = array('message' => $message5,
294
  'access_token' => $acces_token,
295
  'link' => $link,
296
- 'name' => $name,
297
- 'caption' => $caption,
298
- 'description' => $description_li,
299
  'actions' => json_encode(array('name' => $name,
300
- 'link' => $link)),
301
- 'picture' => $attachmenturl
302
 
303
  );
304
  }
@@ -306,12 +298,7 @@ function xyz_fbap_link_publish($post_ID) {
306
  {
307
  $attachment = array('message' => $message5,
308
  'access_token' => $acces_token,
309
- 'link' => $link,
310
- 'name' => $name,
311
- 'caption' => $caption,
312
- 'description' => $description_li,
313
- 'picture' => $attachmenturl
314
-
315
 
316
  );
317
  }
63
  $_POST=$_POST_CPY;
64
  return ;
65
 
66
+ }elseif(( (isset($_POST['_inline_edit'])) || (isset($_REQUEST['bulk_edit'])) ) && (get_option('xyz_fbap_default_selection_edit') == 0) ) {
67
  $_POST=$_POST_CPY;
68
  return;
69
  }
227
 
228
  $xyz_fbap_caption_for_fb_attachment=get_option('xyz_fbap_caption_for_fb_attachment');
229
 
230
+ $caption=get_bloginfo('title');
 
 
 
 
231
  $caption = html_entity_decode($caption, ENT_QUOTES, get_bloginfo('charset'));
232
 
233
  if($tit_flag==1)
289
  $attachment = array('message' => $message5,
290
  'access_token' => $acces_token,
291
  'link' => $link,
 
 
 
292
  'actions' => json_encode(array('name' => $name,
293
+ 'link' => $link))
 
294
 
295
  );
296
  }
298
  {
299
  $attachment = array('message' => $message5,
300
  'access_token' => $acces_token,
301
+ 'link' => $link
 
 
 
 
 
302
 
303
  );
304
  }
admin/settings.php CHANGED
@@ -72,7 +72,6 @@ if(isset($_POST['fb']))
72
 
73
  update_option('xyz_fbap_pages_ids',$fbap_pages_list_ids);
74
 
75
- $xyz_fbap_caption_for_fb_attachment=intval($_POST['xyz_fbap_caption_for_fb_attachment']);
76
 
77
  $applidold=get_option('xyz_fbap_application_id');
78
  $applsecretold=get_option('xyz_fbap_application_secret');
@@ -127,7 +126,6 @@ if(isset($_POST['fb']))
127
  update_option('xyz_fbap_post_permission',$posting_permission);
128
  update_option('xyz_fbap_application_secret',$appsecret);
129
  //update_option('xyz_fbap_fb_id',$fbid);
130
- update_option('xyz_fbap_caption_for_fb_attachment',$xyz_fbap_caption_for_fb_attachment);
131
  update_option('xyz_fbap_po_method',$posting_method);
132
  update_option('xyz_fbap_message',$messagetopost);
133
 
@@ -202,7 +200,6 @@ function dethide(id)
202
  $appsecret=get_option('xyz_fbap_application_secret');
203
  //$fbid=esc_html(get_option('xyz_fbap_fb_id'));
204
  $posting_method=get_option('xyz_fbap_po_method');
205
- $xyz_fbap_caption_for_fb_attachment=get_option('xyz_fbap_caption_for_fb_attachment');
206
  $posting_message=esc_textarea(get_option('xyz_fbap_message'));
207
  if($af==1 && $appid!="" && $appsecret!="")
208
  {
@@ -248,9 +245,10 @@ function dethide(id)
248
 
249
  <b>Note :</b> You have to create a Facebook application before filling the following details.
250
  <b><a href="https://developers.facebook.com/apps" target="_blank">Click here</a></b> to create new Facebook application.
251
- <br>In the application page in facebook, navigate to <b>Apps > Settings > Edit settings > Website > Site URL</b>. Set the site url as :
252
  <span style="color: red;"><?php echo (is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST']; ?></span>
253
- <br>For detailed step by step instructions <b><a href="http://help.xyzscripts.com/docs/social-media-auto-publish/faq/how-can-i-create-facebook-application/" target="_blank">Click here</a></b>.
 
254
  </div>
255
 
256
  </td>
@@ -331,17 +329,6 @@ function dethide(id)
331
  echo esc_textarea(get_option('xyz_fbap_message'));}?></textarea>
332
  </td></tr>
333
 
334
- <tr valign="top">
335
- <td>Caption for attachments while posting to facebook</td>
336
- <td><select name="xyz_fbap_caption_for_fb_attachment" id="xyz_fbap_caption_for_fb_attachment">
337
- <option value ="1" <?php if($xyz_fbap_caption_for_fb_attachment=='1') echo 'selected'; ?> >Site hostname </option>
338
- <option value ="2" <?php if($xyz_fbap_caption_for_fb_attachment=='2') echo 'selected'; ?> >Site title </option>
339
- </select>
340
-
341
- </td>
342
- </tr>
343
-
344
-
345
 
346
  <tr valign="top">
347
  <td>Posting method
72
 
73
  update_option('xyz_fbap_pages_ids',$fbap_pages_list_ids);
74
 
 
75
 
76
  $applidold=get_option('xyz_fbap_application_id');
77
  $applsecretold=get_option('xyz_fbap_application_secret');
126
  update_option('xyz_fbap_post_permission',$posting_permission);
127
  update_option('xyz_fbap_application_secret',$appsecret);
128
  //update_option('xyz_fbap_fb_id',$fbid);
 
129
  update_option('xyz_fbap_po_method',$posting_method);
130
  update_option('xyz_fbap_message',$messagetopost);
131
 
200
  $appsecret=get_option('xyz_fbap_application_secret');
201
  //$fbid=esc_html(get_option('xyz_fbap_fb_id'));
202
  $posting_method=get_option('xyz_fbap_po_method');
 
203
  $posting_message=esc_textarea(get_option('xyz_fbap_message'));
204
  if($af==1 && $appid!="" && $appsecret!="")
205
  {
245
 
246
  <b>Note :</b> You have to create a Facebook application before filling the following details.
247
  <b><a href="https://developers.facebook.com/apps" target="_blank">Click here</a></b> to create new Facebook application.
248
+ <br>In the application page in facebook, navigate to <b>Apps >Add Product > Facebook Login >Quickstart >Web > Site URL</b>. Set the site url as :
249
  <span style="color: red;"><?php echo (is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST']; ?></span>
250
+ <br>And then navigate to <b>Apps > Facebook Login > Settings</b>. Set the Valid OAuth redirect URIs as :<br>
251
+ <span style="color: red;"><?php echo $redirecturl; ?></span><br>For detailed step by step instructions <b><a href="http://help.xyzscripts.com/docs/social-media-auto-publish/faq/how-can-i-create-facebook-application/" target="_blank">Click here</a></b>.
252
  </div>
253
 
254
  </td>
329
  echo esc_textarea(get_option('xyz_fbap_message'));}?></textarea>
330
  </td></tr>
331
 
 
 
 
 
 
 
 
 
 
 
 
332
 
333
  <tr valign="top">
334
  <td>Posting method
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.4
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.5
7
  Author: xyzscripts.com
8
  Author URI: http://xyzscripts.com/
9
  License: GPLv2 or later
readme.txt CHANGED
@@ -1,236 +1,240 @@
1
- === Facebook Auto Publish ===
2
- 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.8
7
- Stable tag: 1.4.4
8
- License: GPLv2 or later
9
-
10
- Publish posts automatically to Facebook page or profile.
11
-
12
- == Description ==
13
-
14
- A quick look into Facebook Auto Publish :
15
-
16
- ★ Publish message to Facebook with image
17
- ★ Attach post or share link to Facebook
18
- ★ Filter items to be published based on categories
19
- ★ Filter items to be published based on custom post types
20
- ★ Enable or disable wordpress page publishing
21
- ★ Customizable message formats for Facebook
22
-
23
-
24
- = Facebook Auto Publish Features in Detail =
25
-
26
- The Facebook Auto Publish lets you publish posts automatically from your blog to Facebook. 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 based on custom post-types as well as categories.
27
-
28
- The prominent features of the Facebook Auto Publish plugin are highlighted below.
29
-
30
- = Supported Mechanisms =
31
-
32
- The various mechanisms of posting to Facebook are listed below.
33
-
34
- Simple text message
35
- Text message with image
36
- Share a link to your blog post
37
- Attach your blog post
38
- Post to Facebook profile page
39
- Post to specific pages on Facebook
40
-
41
- = Filter Settings =
42
-
43
- The plugin offers multiple kinds of filters for contents to be published automatically.
44
-
45
- Enable or disable publishing of wordpress pages
46
- Filter posts to be published based on categories
47
- Filtering based on custom post types
48
-
49
- = Message Format Settings =
50
-
51
- The supported post elements which can be published are given below.
52
-
53
- Post title
54
- Post description
55
- Post excerpt
56
- Permalink
57
- Blog title
58
- User nicename
59
- Post ID
60
- Post publish date
61
-
62
-
63
- = About =
64
-
65
- Facebook Auto Publish is developed and maintained by [XYZScripts](http://xyzscripts.com/ "xyzscripts.com"). For any support, you may [contact us](http://xyzscripts.com/support/ "XYZScripts Support").
66
-
67
- ★ [Facebook Auto Publish User Guide](http://help.xyzscripts.com/docs/facebook-auto-publish/user-guide/ "Facebook Auto Publish User Guide")
68
- ★ [Facebook Auto Publish FAQ](http://help.xyzscripts.com/docs/facebook-auto-publish/faq/ "Facebook Auto Publish FAQ")
69
-
70
- == Installation ==
71
-
72
- ★ [Facebook Auto Publish User Guide](http://help.xyzscripts.com/docs/facebook-auto-publish/user-guide/ "Facebook Auto Publish User Guide")
73
- ★ [Facebook Auto Publish FAQ](http://help.xyzscripts.com/docs/facebook-auto-publish/faq/ "Facebook Auto Publish FAQ")
74
-
75
- 1. Extract `facebook-auto-publish.zip` to your `/wp-content/plugins/` directory.
76
- 2. In the admin panel under plugins activate Facebook Auto Publish.
77
- 3. You can configure the settings from Facebook Auto Publish menu. (Make sure to Authorize Facebook application after saving the settings.)
78
- 4. Once these are done, posts should get automatically published based on your filter settings.
79
-
80
- If you need any further help, you may contact our [support desk](http://xyzscripts.com/support/ "XYZScripts Support").
81
-
82
- == Frequently Asked Questions ==
83
-
84
- ★ [Facebook Auto Publish User Guide](http://help.xyzscripts.com/docs/facebook-auto-publish/user-guide/ "Facebook Auto Publish User Guide")
85
- ★ [Facebook Auto Publish FAQ](http://help.xyzscripts.com/docs/facebook-auto-publish/faq/ "Facebook Auto Publish FAQ")
86
-
87
- = 1. The Facebook Auto Publish is not working properly. =
88
-
89
- Please check the wordpress version you are using. Make sure it meets the minimum version recommended by us. Make sure all files of the `facebook auto publish` plugin are uploaded to the folder `wp-content/plugins/`
90
-
91
-
92
- = 2. Can I post to Facebook pages instead of profile ? =
93
-
94
- Yes, you can select the pages to which you need to publish after authorizing Facebook application.
95
-
96
-
97
- = 3. How do I restrict auto publish to certain categories ? =
98
-
99
- Yes, you can specify the categories which need to be auto published from settings page.
100
-
101
-
102
- = 4. Why do I have to create applications in Facebook ? =
103
-
104
- When you create your own applications, it ensures that the posts to Facebook are not shared with any message like "shared via xxx"
105
-
106
-
107
- = 5. Which all data fields can I send to Facebook ? =
108
-
109
- You may use post title, content, excerpt, permalink, site title and user nicename for auto publishing.
110
-
111
-
112
- = 6. Why do I see SSL related errors in logs ? =
113
-
114
- SSL peer verification may not be functioning in your server. Please turn off SSL peer verification in settings of plugin and try again.
115
-
116
-
117
- = More questions ? =
118
-
119
- [Drop a mail](http://xyzscripts.com/support/ "XYZScripts Support") and we shall get back to you with the answers.
120
-
121
-
122
- == Screenshots ==
123
-
124
- 1. This is the Facebook configuration section.
125
- 2. Publishing options while creating a post.
126
-
127
- == Changelog ==
128
-
129
- = Facebook Auto Publish 1.4.4 =
130
- * Removed Caption from {POST_CONTENT}
131
- * Fixed Facebook image selection issue for 'Share a link to your blog post' and 'Attach your blog post'
132
- * Fixed ssl peer verification in wp_remote_get/wp_remote_post calls
133
-
134
- = Facebook Auto Publish 1.4.3 =
135
- * Added POST_ID and POST_PUBLISH_DATE in message formats
136
-
137
- = Facebook Auto Publish 1.4.2 =
138
- * Fixed facebook boost unavailable issue
139
- * Nonce added
140
- * Prevented direct access to plugin files
141
- * Data validation updated
142
- * App album related issue fixed
143
-
144
- = Facebook Auto Publish 1.4.1 =
145
- * utf-8 decoding issue fixed
146
- * Visual composer compatiblity issue fixed
147
- * Minor bugs fixed
148
-
149
- = Facebook Auto Publish 1.4 =
150
- * Facebook api updated(requires PHP version 5.4 or higher)
151
-
152
- = Facebook Auto Publish 1.3.1 =
153
- * Fixed custom post types autopublish issue
154
- * Fixed duplicate autopublish issue
155
-
156
- = Facebook Auto Publish 1.3 =
157
- * Added option to enable/disable utf-8 decoding before publishing
158
- * Removed unwanted configuration related to 'future_to_publish' hook
159
- * Removed unwanted setting "Facebook user id"
160
- * Postid added in autopublish logs
161
- * Updated auto publish mechanism using transition_post_status hook
162
- * Open graph meta tags will be prefered for facebook attachments
163
-
164
- = Facebook Auto Publish 1.2.4 =
165
- * Added option to enable/disable "future_to_publish" hook for handling auto publish of scheduled posts
166
- * Added options to enable/disable "the_content", "the_excerpt", "the_title" filters on content to be auto-published
167
- * Resolved issue in fetching facebook pages in settings page (in case of more than 100 pages)
168
- * Inline edit of posts will work according to the value set for "Default selection of auto publish while editing posts/pages"
169
- * Latest five auto publish logs are maintained
170
-
171
- = Facebook Auto Publish 1.2.3 =
172
- * Fixed category display issue
173
- * Removed outdated facebook scopes from authorization
174
-
175
- = Facebook Auto Publish 1.2.2 =
176
- * Bug fix for duplicate publishing of scheduled posts
177
-
178
- = Facebook Auto Publish 1.2.1 =
179
- * Fixed auto publish related bug in post edit
180
- * Fixed message format bug in auto publish
181
- * Updated Facebook authorization
182
-
183
- = Facebook Auto Publish 1.2 =
184
- * Option to configure auto publish settings while editing posts/pages
185
- * General setting to enable/disable post publishing
186
- * Added auto publish for scheduled post
187
- * Fixed issue related to \" in auto publish
188
-
189
- = Facebook Auto Publish 1.1.2 =
190
- * Fixed auto-publish of scheduled post
191
-
192
- = Facebook Auto Publish 1.1.1 =
193
- * Added compatibility with wordpress 3.9.1
194
- * Facebook API V 2.0 compatibility added
195
- * Compatibility with bitly plugin
196
-
197
- = Facebook Auto Publish 1.1 =
198
- * View logs for last published post
199
- * Option to enable/disable SSL peer verification
200
- * Option to reauthorize the application
201
-
202
- = Facebook Auto Publish 1.0.2 =
203
- * Bug fixed for &amp;nbsp; in post
204
-
205
- = Facebook Auto Publish 1.0.1 =
206
- * Default image fetch logic for auto publish updated.
207
- * Thumbnail image logic updated.
208
-
209
- = Facebook Auto Publish 1.0 =
210
- * First official launch.
211
-
212
- == Upgrade Notice ==
213
-
214
- = Facebook Auto Publish 1.0.1 =
215
- If you had issues with default image used for auto publishing, you may apply this upgrade.
216
-
217
- = Facebook Auto Publish 1.0 =
218
- First official launch.
219
-
220
- == More Information ==
221
-
222
- [Facebook Auto Publish User Guide](http://help.xyzscripts.com/docs/facebook-auto-publish/ "Facebook Auto Publish User Guide")
223
- ★ [Facebook Auto Publish FAQ](http://help.xyzscripts.com/docs/facebook-auto-publish/faq/ "Facebook Auto Publish FAQ")
224
-
225
- = Troubleshooting =
226
-
227
- Please read the FAQ first if you are having problems.
228
-
229
- = Requirements =
230
-
231
- WordPress 3.0+
232
- PHP 5.4+
233
-
234
- = Feedback =
235
-
236
- We would like to receive your feedback and suggestions about Facebook Auto Publish plugin. You may submit them at our [support desk](http://xyzscripts.com/support/ "XYZScripts Support").
 
 
 
 
1
+ === Facebook Auto Publish ===
2
+ 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.8.3
7
+ Stable tag: 1.4.5
8
+ License: GPLv2 or later
9
+
10
+ Publish posts automatically to Facebook page or profile.
11
+
12
+ == Description ==
13
+
14
+ A quick look into Facebook Auto Publish :
15
+
16
+ ★ Publish message to Facebook with image
17
+ ★ Attach post or share link to Facebook
18
+ ★ Filter items to be published based on categories
19
+ ★ Filter items to be published based on custom post types
20
+ ★ Enable or disable wordpress page publishing
21
+ ★ Customizable message formats for Facebook
22
+
23
+
24
+ = Facebook Auto Publish Features in Detail =
25
+
26
+ The Facebook Auto Publish lets you publish posts automatically from your blog to Facebook. 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 based on custom post-types as well as categories.
27
+
28
+ The prominent features of the Facebook Auto Publish plugin are highlighted below.
29
+
30
+ = Supported Mechanisms =
31
+
32
+ The various mechanisms of posting to Facebook are listed below.
33
+
34
+ Simple text message
35
+ Text message with image
36
+ Share a link to your blog post
37
+ Attach your blog post
38
+ Post to Facebook profile page
39
+ Post to specific pages on Facebook
40
+
41
+ = Filter Settings =
42
+
43
+ The plugin offers multiple kinds of filters for contents to be published automatically.
44
+
45
+ Enable or disable publishing of wordpress pages
46
+ Filter posts to be published based on categories
47
+ Filtering based on custom post types
48
+
49
+ = Message Format Settings =
50
+
51
+ The supported post elements which can be published are given below.
52
+
53
+ Post title
54
+ Post description
55
+ Post excerpt
56
+ Permalink
57
+ Blog title
58
+ User nicename
59
+ Post ID
60
+ Post publish date
61
+
62
+
63
+ = About =
64
+
65
+ Facebook Auto Publish is developed and maintained by [XYZScripts](http://xyzscripts.com/ "xyzscripts.com"). For any support, you may [contact us](http://xyzscripts.com/support/ "XYZScripts Support").
66
+
67
+ ★ [Facebook Auto Publish User Guide](http://help.xyzscripts.com/docs/facebook-auto-publish/user-guide/ "Facebook Auto Publish User Guide")
68
+ ★ [Facebook Auto Publish FAQ](http://help.xyzscripts.com/docs/facebook-auto-publish/faq/ "Facebook Auto Publish FAQ")
69
+
70
+ == Installation ==
71
+
72
+ ★ [Facebook Auto Publish User Guide](http://help.xyzscripts.com/docs/facebook-auto-publish/user-guide/ "Facebook Auto Publish User Guide")
73
+ ★ [Facebook Auto Publish FAQ](http://help.xyzscripts.com/docs/facebook-auto-publish/faq/ "Facebook Auto Publish FAQ")
74
+
75
+ 1. Extract `facebook-auto-publish.zip` to your `/wp-content/plugins/` directory.
76
+ 2. In the admin panel under plugins activate Facebook Auto Publish.
77
+ 3. You can configure the settings from Facebook Auto Publish menu. (Make sure to Authorize Facebook application after saving the settings.)
78
+ 4. Once these are done, posts should get automatically published based on your filter settings.
79
+
80
+ If you need any further help, you may contact our [support desk](http://xyzscripts.com/support/ "XYZScripts Support").
81
+
82
+ == Frequently Asked Questions ==
83
+
84
+ ★ [Facebook Auto Publish User Guide](http://help.xyzscripts.com/docs/facebook-auto-publish/user-guide/ "Facebook Auto Publish User Guide")
85
+ ★ [Facebook Auto Publish FAQ](http://help.xyzscripts.com/docs/facebook-auto-publish/faq/ "Facebook Auto Publish FAQ")
86
+
87
+ = 1. The Facebook Auto Publish is not working properly. =
88
+
89
+ Please check the wordpress version you are using. Make sure it meets the minimum version recommended by us. Make sure all files of the `facebook auto publish` plugin are uploaded to the folder `wp-content/plugins/`
90
+
91
+
92
+ = 2. Can I post to Facebook pages instead of profile ? =
93
+
94
+ Yes, you can select the pages to which you need to publish after authorizing Facebook application.
95
+
96
+
97
+ = 3. How do I restrict auto publish to certain categories ? =
98
+
99
+ Yes, you can specify the categories which need to be auto published from settings page.
100
+
101
+
102
+ = 4. Why do I have to create applications in Facebook ? =
103
+
104
+ When you create your own applications, it ensures that the posts to Facebook are not shared with any message like "shared via xxx"
105
+
106
+
107
+ = 5. Which all data fields can I send to Facebook ? =
108
+
109
+ You may use post title, content, excerpt, permalink, site title and user nicename for auto publishing.
110
+
111
+
112
+ = 6. Why do I see SSL related errors in logs ? =
113
+
114
+ SSL peer verification may not be functioning in your server. Please turn off SSL peer verification in settings of plugin and try again.
115
+
116
+
117
+ = More questions ? =
118
+
119
+ [Drop a mail](http://xyzscripts.com/support/ "XYZScripts Support") and we shall get back to you with the answers.
120
+
121
+
122
+ == Screenshots ==
123
+
124
+ 1. This is the Facebook configuration section.
125
+ 2. Publishing options while creating a post.
126
+
127
+ == Changelog ==
128
+
129
+ = Facebook Auto Publish 1.4.5 =
130
+ * Compatibility with facebook API V 2.11 added
131
+ * Minor bug fixes
132
+
133
+ = Facebook Auto Publish 1.4.4 =
134
+ * Removed Caption from {POST_CONTENT}
135
+ * Fixed Facebook image selection issue for 'Share a link to your blog post' and 'Attach your blog post'
136
+ * Fixed ssl peer verification in wp_remote_get/wp_remote_post calls
137
+
138
+ = Facebook Auto Publish 1.4.3 =
139
+ * Added POST_ID and POST_PUBLISH_DATE in message formats
140
+
141
+ = Facebook Auto Publish 1.4.2 =
142
+ * Fixed facebook boost unavailable issue
143
+ * Nonce added
144
+ * Prevented direct access to plugin files
145
+ * Data validation updated
146
+ * App album related issue fixed
147
+
148
+ = Facebook Auto Publish 1.4.1 =
149
+ * utf-8 decoding issue fixed
150
+ * Visual composer compatiblity issue fixed
151
+ * Minor bugs fixed
152
+
153
+ = Facebook Auto Publish 1.4 =
154
+ * Facebook api updated(requires PHP version 5.4 or higher)
155
+
156
+ = Facebook Auto Publish 1.3.1 =
157
+ * Fixed custom post types autopublish issue
158
+ * Fixed duplicate autopublish issue
159
+
160
+ = Facebook Auto Publish 1.3 =
161
+ * Added option to enable/disable utf-8 decoding before publishing
162
+ * Removed unwanted configuration related to 'future_to_publish' hook
163
+ * Removed unwanted setting "Facebook user id"
164
+ * Postid added in autopublish logs
165
+ * Updated auto publish mechanism using transition_post_status hook
166
+ * Open graph meta tags will be prefered for facebook attachments
167
+
168
+ = Facebook Auto Publish 1.2.4 =
169
+ * Added option to enable/disable "future_to_publish" hook for handling auto publish of scheduled posts
170
+ * Added options to enable/disable "the_content", "the_excerpt", "the_title" filters on content to be auto-published
171
+ * Resolved issue in fetching facebook pages in settings page (in case of more than 100 pages)
172
+ * Inline edit of posts will work according to the value set for "Default selection of auto publish while editing posts/pages"
173
+ * Latest five auto publish logs are maintained
174
+
175
+ = Facebook Auto Publish 1.2.3 =
176
+ * Fixed category display issue
177
+ * Removed outdated facebook scopes from authorization
178
+
179
+ = Facebook Auto Publish 1.2.2 =
180
+ * Bug fix for duplicate publishing of scheduled posts
181
+
182
+ = Facebook Auto Publish 1.2.1 =
183
+ * Fixed auto publish related bug in post edit
184
+ * Fixed message format bug in auto publish
185
+ * Updated Facebook authorization
186
+
187
+ = Facebook Auto Publish 1.2 =
188
+ * Option to configure auto publish settings while editing posts/pages
189
+ * General setting to enable/disable post publishing
190
+ * Added auto publish for scheduled post
191
+ * Fixed issue related to \" in auto publish
192
+
193
+ = Facebook Auto Publish 1.1.2 =
194
+ * Fixed auto-publish of scheduled post
195
+
196
+ = Facebook Auto Publish 1.1.1 =
197
+ * Added compatibility with wordpress 3.9.1
198
+ * Facebook API V 2.0 compatibility added
199
+ * Compatibility with bitly plugin
200
+
201
+ = Facebook Auto Publish 1.1 =
202
+ * View logs for last published post
203
+ * Option to enable/disable SSL peer verification
204
+ * Option to reauthorize the application
205
+
206
+ = Facebook Auto Publish 1.0.2 =
207
+ * Bug fixed for &amp;nbsp; in post
208
+
209
+ = Facebook Auto Publish 1.0.1 =
210
+ * Default image fetch logic for auto publish updated.
211
+ * Thumbnail image logic updated.
212
+
213
+ = Facebook Auto Publish 1.0 =
214
+ * First official launch.
215
+
216
+ == Upgrade Notice ==
217
+
218
+ = Facebook Auto Publish 1.0.1 =
219
+ If you had issues with default image used for auto publishing, you may apply this upgrade.
220
+
221
+ = Facebook Auto Publish 1.0 =
222
+ First official launch.
223
+
224
+ == More Information ==
225
+
226
+ ★ [Facebook Auto Publish User Guide](http://help.xyzscripts.com/docs/facebook-auto-publish/ "Facebook Auto Publish User Guide")
227
+ [Facebook Auto Publish FAQ](http://help.xyzscripts.com/docs/facebook-auto-publish/faq/ "Facebook Auto Publish FAQ")
228
+
229
+ = Troubleshooting =
230
+
231
+ Please read the FAQ first if you are having problems.
232
+
233
+ = Requirements =
234
+
235
+ WordPress 3.0+
236
+ PHP 5.4+
237
+
238
+ = Feedback =
239
+
240
+ We would like to receive your feedback and suggestions about Facebook Auto Publish plugin. You may submit them at our [support desk](http://xyzscripts.com/support/ "XYZScripts Support").
xyz-functions.php CHANGED
@@ -144,7 +144,7 @@ if (!function_exists("xyz_wp_fbap_attachment_metas")) {
144
  $og_datas = new DOMDocument();
145
  @$og_datas->loadHTML('<?xml encoding="UTF-8">'.$aprv_me_data);
146
  $xpath = new DOMXPath($og_datas);
147
- if(isset($attachment['name']))
148
  {
149
  $ogmetaContentAttributeNodes_tit = $xpath->query("/html/head/meta[@property='og:title']/@content");
150
 
@@ -158,7 +158,7 @@ if (!function_exists("xyz_wp_fbap_attachment_metas")) {
158
  // $content_title=utf8_decode($content_title);
159
  if($name!='')
160
  $attachment['name']=$name;
161
- }
162
  if(isset($attachment['actions']))
163
  {
164
  if(isset($attachment['actions']['name']))
@@ -181,7 +181,7 @@ if (!function_exists("xyz_wp_fbap_attachment_metas")) {
181
  $attachment['actions']['link']=$url;
182
  }
183
  }
184
- if(isset($attachment['description']))
185
  {
186
  $ogmetaContentAttributeNodes_desc = $xpath->query("/html/head/meta[@property='og:description']/@content");
187
  foreach($ogmetaContentAttributeNodes_desc as $ogmetaContentAttributeNode_desc) {
@@ -193,7 +193,7 @@ if (!function_exists("xyz_wp_fbap_attachment_metas")) {
193
  // $content_desc=utf8_decode($content_desc);
194
  if($description_li!='')
195
  $attachment['description']=$description_li;
196
- }
197
  /*if(isset($attachment['picture']))
198
  {
199
  $ogmetaContentAttributeNodes_img = $xpath->query("/html/head/meta[@property='og:image']/@content");
144
  $og_datas = new DOMDocument();
145
  @$og_datas->loadHTML('<?xml encoding="UTF-8">'.$aprv_me_data);
146
  $xpath = new DOMXPath($og_datas);
147
+ /* if(isset($attachment['name']))
148
  {
149
  $ogmetaContentAttributeNodes_tit = $xpath->query("/html/head/meta[@property='og:title']/@content");
150
 
158
  // $content_title=utf8_decode($content_title);
159
  if($name!='')
160
  $attachment['name']=$name;
161
+ } */
162
  if(isset($attachment['actions']))
163
  {
164
  if(isset($attachment['actions']['name']))
181
  $attachment['actions']['link']=$url;
182
  }
183
  }
184
+ /* if(isset($attachment['description']))
185
  {
186
  $ogmetaContentAttributeNodes_desc = $xpath->query("/html/head/meta[@property='og:description']/@content");
187
  foreach($ogmetaContentAttributeNodes_desc as $ogmetaContentAttributeNode_desc) {
193
  // $content_desc=utf8_decode($content_desc);
194
  if($description_li!='')
195
  $attachment['description']=$description_li;
196
+ } */
197
  /*if(isset($attachment['picture']))
198
  {
199
  $ogmetaContentAttributeNodes_img = $xpath->query("/html/head/meta[@property='og:image']/@content");