WP Facebook Auto Publish - Version 1.2.1

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

Code changes from version 1.2 to 1.2.1

admin/authorization.php CHANGED
@@ -19,7 +19,7 @@ if(isset($_POST['fb_auth']))
19
 
20
  $dialog_url = "https://www.facebook.com/".XYZ_FBAP_FB_API_VERSION."/dialog/oauth?client_id="
21
  . $app_id . "&redirect_uri=" . $my_url . "&state="
22
- . $xyz_fbap_session_state . "&scope=email,user_about_me,offline_access,publish_stream,publish_actions,manage_pages";
23
 
24
  header("Location: " . $dialog_url);
25
  }
19
 
20
  $dialog_url = "https://www.facebook.com/".XYZ_FBAP_FB_API_VERSION."/dialog/oauth?client_id="
21
  . $app_id . "&redirect_uri=" . $my_url . "&state="
22
+ . $xyz_fbap_session_state . "&scope=email,user_about_me,offline_access,publish_pages,user_posts,publish_stream,publish_actions,manage_pages";
23
 
24
  header("Location: " . $dialog_url);
25
  }
admin/publish.php CHANGED
@@ -22,20 +22,20 @@ function xyz_fbap_link_publish($post_ID) {
22
 
23
  $_POST_CPY=$_POST;
24
  $_POST=stripslashes_deep($_POST);
25
- if(isset($_POST['xyz_fbap_hidden_meta']) && $_POST['xyz_fbap_hidden_meta']==1)
26
- {
27
- $_POST=$_POST_CPY;
28
- return ;
29
- }
30
 
31
  $get_post_meta=get_post_meta($post_ID,"xyz_fbap",true);
32
  if($get_post_meta!=1)
33
  add_post_meta($post_ID, "xyz_fbap", "1");
34
- else
35
- {
36
- $_POST=$_POST_CPY;
37
- return;
38
- }
39
  global $current_user;
40
  get_currentuserinfo();
41
 
@@ -124,8 +124,7 @@ function xyz_fbap_link_publish($post_ID) {
124
 
125
 
126
 
127
- $content = $postpp->post_content;apply_filters('the_content', $content);
128
-
129
  $excerpt = $postpp->post_excerpt;apply_filters('the_excerpt', $excerpt);
130
  if($excerpt=="")
131
  {
22
 
23
  $_POST_CPY=$_POST;
24
  $_POST=stripslashes_deep($_POST);
25
+ // if(isset($_POST['xyz_fbap_hidden_meta']) && $_POST['xyz_fbap_hidden_meta']==1)
26
+ // {
27
+ // $_POST=$_POST_CPY;
28
+ // return ;
29
+ // }
30
 
31
  $get_post_meta=get_post_meta($post_ID,"xyz_fbap",true);
32
  if($get_post_meta!=1)
33
  add_post_meta($post_ID, "xyz_fbap", "1");
34
+ // else
35
+ // {
36
+ // $_POST=$_POST_CPY;
37
+ // return;
38
+ // }
39
  global $current_user;
40
  get_currentuserinfo();
41
 
124
 
125
 
126
 
127
+ $content = $postpp->post_content;$content = apply_filters('the_content', $content);
 
128
  $excerpt = $postpp->post_excerpt;apply_filters('the_excerpt', $excerpt);
129
  if($excerpt=="")
130
  {
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.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.2.1
7
  Author: xyzscripts.com
8
  Author URI: http://xyzscripts.com/
9
  License: GPLv2 or later
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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: 2.8
6
  Tested up to: 4.1
7
- Stable tag: 1.2
8
  License: GPLv2 or later
9
 
10
  Publish posts automatically to Facebook page or profile.
@@ -122,6 +122,11 @@ More questions ? [Drop a mail](http://xyzscripts.com/members/support/ "XYZScript
122
 
123
  == Changelog ==
124
 
 
 
 
 
 
125
  = Facebook Auto Publish 1.2 =
126
  * Option to configure auto publish settings while editing posts/pages
127
  * General setting to enable/disable post publishing
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: 2.8
6
  Tested up to: 4.1
7
+ Stable tag: 1.2.1
8
  License: GPLv2 or later
9
 
10
  Publish posts automatically to Facebook page or profile.
122
 
123
  == Changelog ==
124
 
125
+ = Facebook Auto Publish 1.2.1 =
126
+ * Fixed auto publish related bug in post edit
127
+ * Fixed message format bug in auto publish
128
+ * Updated Facebook authorization
129
+
130
  = Facebook Auto Publish 1.2 =
131
  * Option to configure auto publish settings while editing posts/pages
132
  * General setting to enable/disable post publishing
xyz-functions.php CHANGED
@@ -88,7 +88,7 @@ function xyz_fbap_getimage($post_ID,$description_org)
88
  $attachmentimage=wp_get_attachment_image_src( $post_thumbnail_id, full );
89
 
90
  }
91
- else {
92
  preg_match_all( '/< *img[^>]*src *= *["\']?([^"\']*)/is', $description_org, $matches );
93
  if(isset($matches[1][0]))
94
  $attachmenturl = $matches[1][0];
88
  $attachmentimage=wp_get_attachment_image_src( $post_thumbnail_id, full );
89
 
90
  }
91
+ else {
92
  preg_match_all( '/< *img[^>]*src *= *["\']?([^"\']*)/is', $description_org, $matches );
93
  if(isset($matches[1][0]))
94
  $attachmenturl = $matches[1][0];