WP Facebook Auto Publish - Version 1.0.2

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

Code changes from version 1.0.1 to 1.0.2

admin/publish.php CHANGED
@@ -169,7 +169,12 @@ function xyz_fbap_link_publish($post_ID) {
169
 
170
  $description=strip_tags($description);
171
  $description=strip_shortcodes($description);
172
-
 
 
 
 
 
173
 
174
  if($useracces_token!="" && $appsecret!="" && $appid!="" && $post_permissin==1)
175
  {
@@ -203,6 +208,9 @@ function xyz_fbap_link_publish($post_ID) {
203
  $message4=str_replace('{POST_EXCERPT}', $excerpt, $message3);
204
  $message5=str_replace('{POST_CONTENT}', $description, $message4);
205
  $message5=str_replace('{USER_NICENAME}', $user_nicename, $message5);
 
 
 
206
 
207
  $disp_type="feed";
208
  if($posting_method==1) //attach
169
 
170
  $description=strip_tags($description);
171
  $description=strip_shortcodes($description);
172
+
173
+ $description=str_replace(" ","",$description);
174
+ //$description=str_replace(array("\r\n","\r","\n"), '', $description);
175
+
176
+ $excerpt=str_replace(" ","",$excerpt);
177
+ //$excerpt=str_replace(array("\r\n","\r","\n"), '', $excerpt);
178
 
179
  if($useracces_token!="" && $appsecret!="" && $appid!="" && $post_permissin==1)
180
  {
208
  $message4=str_replace('{POST_EXCERPT}', $excerpt, $message3);
209
  $message5=str_replace('{POST_CONTENT}', $description, $message4);
210
  $message5=str_replace('{USER_NICENAME}', $user_nicename, $message5);
211
+
212
+ $message5=str_replace(" ","",$message5);
213
+ //$message5=str_replace(array("\r\n","\r","\n"), '', $message5);
214
 
215
  $disp_type="feed";
216
  if($posting_method==1) //attach
admin/settings.php CHANGED
@@ -311,12 +311,15 @@ function dethide(id)
311
  if(is_array($pp))
312
  {
313
  $result1=$pp['body'];
314
- $pagearray1 = json_decode($result1);
 
315
  $data = array_merge($data, $pagearray1->data);
316
  }
317
  else
318
  break;
319
  $offset += $limit;
 
 
320
  }while(array_key_exists("next", $pagearray1->paging));
321
 
322
 
311
  if(is_array($pp))
312
  {
313
  $result1=$pp['body'];
314
+ $pagearray1 = json_decode($result1);
315
+ if(is_array($pagearray1->data))
316
  $data = array_merge($data, $pagearray1->data);
317
  }
318
  else
319
  break;
320
  $offset += $limit;
321
+ if(!is_array($pagearray1->paging))
322
+ break;
323
  }while(array_key_exists("next", $pagearray1->paging));
324
 
325
 
api/base_facebook.php CHANGED
@@ -223,8 +223,12 @@ abstract class FBAPBaseFacebook
223
  * @param array $config The application configuration
224
  */
225
  public function __construct($config) {
226
- $this->setAppId($config['appId']);
 
 
 
227
  $this->setAppSecret($config['secret']);
 
228
  if (isset($config['fileUpload'])) {
229
  $this->setFileUploadSupport($config['fileUpload']);
230
  }
223
  * @param array $config The application configuration
224
  */
225
  public function __construct($config) {
226
+ if (isset($config['appId'])) {
227
+ $this->setAppId($config['appId']);}
228
+
229
+ if (isset($config['secret'])) {
230
  $this->setAppSecret($config['secret']);
231
+ }
232
  if (isset($config['fileUpload'])) {
233
  $this->setFileUploadSupport($config['fileUpload']);
234
  }
api/facebook.php CHANGED
@@ -44,7 +44,7 @@ class FBAPFacebook extends FBAPBaseFacebook
44
  * shares the domain with other apps).
45
  * @see FBAPBaseFacebook::__construct in facebook.php
46
  */
47
- public function __construct($config) {
48
  if (!session_id()) {
49
  session_start();
50
  }
44
  * shares the domain with other apps).
45
  * @see FBAPBaseFacebook::__construct in facebook.php
46
  */
47
+ public function __construct($config=array()) {
48
  if (!session_id()) {
49
  session_start();
50
  }
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.0.1
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.0.2
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: 2.8
6
- Tested up to: 3.6
7
- Stable tag: 1.0.1
8
  License: GPLv2 or later
9
 
10
  Publish posts automatically to Facebook page or profile.
@@ -117,6 +117,9 @@ More questions ? [Drop a mail](http://xyzscripts.com/members/support/ "XYZScript
117
 
118
  == Changelog ==
119
 
 
 
 
120
  = Facebook Auto Publish 1.0.1 =
121
  * Default image fetch logic for auto publish updated.
122
  * Thumbnail image logic updated.
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: 2.8
6
+ Tested up to: 3.8
7
+ Stable tag: 1.0.2
8
  License: GPLv2 or later
9
 
10
  Publish posts automatically to Facebook page or profile.
117
 
118
  == Changelog ==
119
 
120
+ = Facebook Auto Publish 1.0.2 =
121
+ * Bug fixed for   in post.
122
+
123
  = Facebook Auto Publish 1.0.1 =
124
  * Default image fetch logic for auto publish updated.
125
  * Thumbnail image logic updated.