WP Facebook Auto Publish - Version 1.4.4

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

Code changes from version 1.4.3 to 1.4.4

admin/authorization.php CHANGED
@@ -43,7 +43,7 @@ if(isset($_COOKIE['xyz_fbap_session_state']) && isset($_REQUEST['state']) && ($_
43
  . "&client_secret=" . $app_secret . "&code=" . $code;
44
 
45
  $params = null;$access_token="";
46
- $response = wp_remote_get($token_url);
47
 
48
  if(is_array($response))
49
  {
@@ -69,7 +69,7 @@ if(isset($_COOKIE['xyz_fbap_session_state']) && isset($_REQUEST['state']) && ($_
69
  do
70
  {
71
  $result1="";$pagearray1="";
72
- $pp=wp_remote_get("https://graph.facebook.com/".XYZ_FBAP_FB_API_VERSION."/me/accounts?access_token=$access_token&limit=$limit&offset=$offset");
73
 
74
  if(is_array($pp))
75
  {
@@ -117,7 +117,7 @@ if(isset($_COOKIE['xyz_fbap_session_state']) && isset($_REQUEST['state']) && ($_
117
  update_option('xyz_fbap_pages_ids',$newpgs);
118
 
119
  $url = 'https://graph.facebook.com/'.XYZ_FBAP_FB_API_VERSION.'/me?access_token='.$access_token;
120
- $contentget=wp_remote_get($url);$page_id='';
121
  if(is_array($contentget))
122
  {
123
  $result1=$contentget['body'];
43
  . "&client_secret=" . $app_secret . "&code=" . $code;
44
 
45
  $params = null;$access_token="";
46
+ $response = wp_remote_get($token_url,array('sslverify'=> (get_option('xyz_fbap_peer_verification')=='1') ? true : false));
47
 
48
  if(is_array($response))
49
  {
69
  do
70
  {
71
  $result1="";$pagearray1="";
72
+ $pp=wp_remote_get("https://graph.facebook.com/".XYZ_FBAP_FB_API_VERSION."/me/accounts?access_token=$access_token&limit=$limit&offset=$offset",array('sslverify'=> (get_option('xyz_fbap_peer_verification')=='1') ? true : false));
73
 
74
  if(is_array($pp))
75
  {
117
  update_option('xyz_fbap_pages_ids',$newpgs);
118
 
119
  $url = 'https://graph.facebook.com/'.XYZ_FBAP_FB_API_VERSION.'/me?access_token='.$access_token;
120
+ $contentget=wp_remote_get($url,array('sslverify'=> (get_option('xyz_fbap_peer_verification')=='1') ? true : false));$page_id='';
121
  if(is_array($contentget))
122
  {
123
  $result1=$contentget['body'];
admin/menu.php CHANGED
@@ -60,4 +60,26 @@ function xyz_fbap_logs()
60
  require( dirname( __FILE__ ) . '/footer.php' );
61
  }
62
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  ?>
60
  require( dirname( __FILE__ ) . '/footer.php' );
61
  }
62
 
63
+ add_action('wp_head', 'xyz_fbap_insert_og_image_for_fb');
64
+ function xyz_fbap_insert_og_image_for_fb(){
65
+
66
+ global $post;
67
+ $postid= $post->ID;
68
+ if(isset($postid ) && $postid>0)
69
+ {
70
+ $get_post_meta_insert_og=0;
71
+ $get_post_meta_insert_og=get_post_meta($postid,"xyz_fbap_insert_og",true);
72
+ if (($get_post_meta_insert_og==1)&&(strpos($_SERVER["HTTP_USER_AGENT"], "facebookexternalhit/") !== false || strpos($_SERVER["HTTP_USER_AGENT"], "Facebot") !== false))
73
+ {
74
+ $attachmenturl=xyz_fbap_getimage($postid, $post->post_content);
75
+
76
+ if(!empty($attachmenturl))
77
+ {
78
+ echo '<meta property="og:image" content="'.$attachmenturl.'" />';
79
+ update_post_meta($postid, "xyz_fbap_insert_og", "0");
80
+ }
81
+ }
82
+ }
83
+ }
84
+
85
  ?>
admin/publish.php CHANGED
@@ -178,12 +178,12 @@ function xyz_fbap_link_publish($post_ID) {
178
  $xyz_fbap_apply_filters=get_option('xyz_fbap_apply_filters');
179
  $ar2=explode(",",$xyz_fbap_apply_filters);
180
  $con_flag=$exc_flag=$tit_flag=0;
181
- if(isset($ar2[0]))
182
- if($ar2[0]==1) $con_flag=1;
183
- if(isset($ar2[1]))
184
- if($ar2[1]==2) $exc_flag=1;
185
- if(isset($ar2[2]))
186
- if($ar2[2]==3) $tit_flag=1;
187
 
188
  $content = $postpp->post_content;
189
  if($con_flag==1)
@@ -436,6 +436,7 @@ function xyz_fbap_link_publish($post_ID) {
436
  {
437
 
438
  $attachment=xyz_wp_fbap_attachment_metas($attachment,$link);
 
439
  }
440
  try{
441
 
178
  $xyz_fbap_apply_filters=get_option('xyz_fbap_apply_filters');
179
  $ar2=explode(",",$xyz_fbap_apply_filters);
180
  $con_flag=$exc_flag=$tit_flag=0;
181
+ if(isset($ar2))
182
+ {
183
+ if(in_array(1, $ar2)) $con_flag=1;
184
+ if(in_array(2, $ar2)) $exc_flag=1;
185
+ if(in_array(3, $ar2)) $tit_flag=1;
186
+ }
187
 
188
  $content = $postpp->post_content;
189
  if($con_flag==1)
436
  {
437
 
438
  $attachment=xyz_wp_fbap_attachment_metas($attachment,$link);
439
+ update_post_meta($post_ID, "xyz_fbap_insert_og", "1");
440
  }
441
  try{
442
 
admin/settings.php CHANGED
@@ -392,7 +392,7 @@ function dethide(id)
392
  do
393
  {
394
  $result1="";$pagearray1="";
395
- $pp=wp_remote_get("https://graph.facebook.com/".XYZ_FBAP_FB_API_VERSION."/me/accounts?access_token=$xyz_acces_token&limit=$limit&offset=$offset");
396
 
397
  if(is_array($pp))
398
  {
392
  do
393
  {
394
  $result1="";$pagearray1="";
395
+ $pp=wp_remote_get("https://graph.facebook.com/".XYZ_FBAP_FB_API_VERSION."/me/accounts?access_token=$xyz_acces_token&limit=$limit&offset=$offset",array('sslverify'=> (get_option('xyz_fbap_peer_verification')=='1') ? true : false));
396
 
397
  if(is_array($pp))
398
  {
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.3
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.4
7
  Author: xyzscripts.com
8
  Author URI: http://xyzscripts.com/
9
  License: GPLv2 or later
readme.txt CHANGED
@@ -1,231 +1,236 @@
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.3
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.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
135
- * Prevented direct access to plugin files
136
- * Data validation updated
137
- * App album related issue fixed
138
-
139
- = Facebook Auto Publish 1.4.1 =
140
- * utf-8 decoding issue fixed
141
- * Visual composer compatiblity issue fixed
142
- * Minor bugs fixed
143
-
144
- = Facebook Auto Publish 1.4 =
145
- * Facebook api updated(requires PHP version 5.4 or higher)
146
-
147
- = Facebook Auto Publish 1.3.1 =
148
- * Fixed custom post types autopublish issue
149
- * Fixed duplicate autopublish issue
150
-
151
- = Facebook Auto Publish 1.3 =
152
- * Added option to enable/disable utf-8 decoding before publishing
153
- * Removed unwanted configuration related to 'future_to_publish' hook
154
- * Removed unwanted setting "Facebook user id"
155
- * Postid added in autopublish logs
156
- * Updated auto publish mechanism using transition_post_status hook
157
- * Open graph meta tags will be prefered for facebook attachments
158
-
159
- = Facebook Auto Publish 1.2.4 =
160
- * Added option to enable/disable "future_to_publish" hook for handling auto publish of scheduled posts
161
- * Added options to enable/disable "the_content", "the_excerpt", "the_title" filters on content to be auto-published
162
- * Resolved issue in fetching facebook pages in settings page (in case of more than 100 pages)
163
- * Inline edit of posts will work according to the value set for "Default selection of auto publish while editing posts/pages"
164
- * Latest five auto publish logs are maintained
165
-
166
- = Facebook Auto Publish 1.2.3 =
167
- * Fixed category display issue
168
- * Removed outdated facebook scopes from authorization
169
-
170
- = Facebook Auto Publish 1.2.2 =
171
- * Bug fix for duplicate publishing of scheduled posts
172
-
173
- = Facebook Auto Publish 1.2.1 =
174
- * Fixed auto publish related bug in post edit
175
- * Fixed message format bug in auto publish
176
- * Updated Facebook authorization
177
-
178
- = Facebook Auto Publish 1.2 =
179
- * Option to configure auto publish settings while editing posts/pages
180
- * General setting to enable/disable post publishing
181
- * Added auto publish for scheduled post
182
- * Fixed issue related to \" in auto publish
183
-
184
- = Facebook Auto Publish 1.1.2 =
185
- * Fixed auto-publish of scheduled post
186
-
187
- = Facebook Auto Publish 1.1.1 =
188
- * Added compatibility with wordpress 3.9.1
189
- * Facebook API V 2.0 compatibility added
190
- * Compatibility with bitly plugin
191
-
192
- = Facebook Auto Publish 1.1 =
193
- * View logs for last published post
194
- * Option to enable/disable SSL peer verification
195
- * Option to reauthorize the application
196
-
197
- = Facebook Auto Publish 1.0.2 =
198
- * Bug fixed for &amp;nbsp; in post
199
-
200
- = Facebook Auto Publish 1.0.1 =
201
- * Default image fetch logic for auto publish updated.
202
- * Thumbnail image logic updated.
203
-
204
- = Facebook Auto Publish 1.0 =
205
- * First official launch.
206
-
207
- == Upgrade Notice ==
208
-
209
- = Facebook Auto Publish 1.0.1 =
210
- If you had issues with default image used for auto publishing, you may apply this upgrade.
211
-
212
- = Facebook Auto Publish 1.0 =
213
- First official launch.
214
-
215
- == More Information ==
216
-
217
- [Facebook Auto Publish User Guide](http://help.xyzscripts.com/docs/facebook-auto-publish/ "Facebook Auto Publish User Guide")
218
- [Facebook Auto Publish FAQ](http://help.xyzscripts.com/docs/facebook-auto-publish/faq/ "Facebook Auto Publish FAQ")
219
-
220
- = Troubleshooting =
221
-
222
- Please read the FAQ first if you are having problems.
223
-
224
- = Requirements =
225
-
226
- WordPress 3.0+
227
- PHP 5.4+
228
-
229
- = Feedback =
230
-
231
- 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
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").
xyz-functions.php CHANGED
@@ -133,7 +133,7 @@ if (!function_exists("xyz_wp_fbap_attachment_metas")) {
133
  function xyz_wp_fbap_attachment_metas($attachment,$url)
134
  {
135
  $name='';$description_li='';$content_img='';$utf="UTF-8";
136
- $aprv_me_data=wp_remote_get($url);
137
  if( is_array($aprv_me_data) ) {
138
  $aprv_me_data = $aprv_me_data['body']; // use the content
139
  }
133
  function xyz_wp_fbap_attachment_metas($attachment,$url)
134
  {
135
  $name='';$description_li='';$content_img='';$utf="UTF-8";
136
+ $aprv_me_data=wp_remote_get($url,array('sslverify'=> (get_option('xyz_fbap_peer_verification')=='1') ? true : false));
137
  if( is_array($aprv_me_data) ) {
138
  $aprv_me_data = $aprv_me_data['body']; // use the content
139
  }