WP Facebook Auto Publish - Version 2.3.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 2.3.1
Comparing to
See all releases

Code changes from version 2.3 to 2.3.1

admin/about.php CHANGED
@@ -247,7 +247,7 @@ WP2Social Auto Publish is developed and maintained by <a href="https://xyzscript
247
  </td>
248
  </tr>
249
  <tr>
250
- <td>Publish multiple images to facebook, tumblr and twitter along with post content</td>
251
  <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
252
  </td>
253
  <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
@@ -307,7 +307,7 @@ WP2Social Auto Publish is developed and maintained by <a href="https://xyzscript
307
  <!-- Filter Options -->
308
 
309
  <tr>
310
- <td rowspan="7"><h4>Filter Options</h4></td>
311
  <td>Filter posts to publish based on categories</td>
312
  <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
313
  </td>
@@ -326,6 +326,15 @@ WP2Social Auto Publish is developed and maintained by <a href="https://xyzscript
326
  <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
327
  </td>
328
  </tr>
 
 
 
 
 
 
 
 
 
329
 
330
  <tr>
331
  <td>Configuration to enable/disable page publishing</td>
@@ -375,7 +384,15 @@ WP2Social Auto Publish is developed and maintained by <a href="https://xyzscript
375
  <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
376
  </td>
377
  </tr>
378
-
 
 
 
 
 
 
 
 
379
  <!-- Scheduling -->
380
 
381
  <tr>
@@ -514,7 +531,7 @@ WP2Social Auto Publish is developed and maintained by <a href="https://xyzscript
514
  <tr>
515
  <td rowspan="3"><h4>Other</h4></td>
516
  <td>SMAPSOLUTIONS API package for 1 year, worth 10 USD(1 fb account ,10 api calls per hour)</td>
517
- <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
518
  </td>
519
  <td>3 months free subscription
520
  </td>
247
  </td>
248
  </tr>
249
  <tr>
250
+ <td>Publish multiple images to facebook, tumblr, linkedin and twitter along with post content</td>
251
  <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
252
  </td>
253
  <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
307
  <!-- Filter Options -->
308
 
309
  <tr>
310
+ <td rowspan="9"><h4>Filter Options</h4></td>
311
  <td>Filter posts to publish based on categories</td>
312
  <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
313
  </td>
326
  <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
327
  </td>
328
  </tr>
329
+ <tr>
330
+ <td>Filter posts to publish based on sticky posts</td>
331
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
332
+ </td>
333
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
334
+ </td>
335
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
336
+ </td>
337
+ </tr>
338
 
339
  <tr>
340
  <td>Configuration to enable/disable page publishing</td>
384
  <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
385
  </td>
386
  </tr>
387
+ <tr>
388
+ <td>Override auto publish based on sticky posts for individual accounts</td>
389
+ <td><img src="<?php echo plugins_url("images/cross.png",XYZ_FBAP_PLUGIN_FILE);?>">
390
+ </td>
391
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
392
+ </td>
393
+ <td><img src="<?php echo plugins_url("images/tick.png",XYZ_FBAP_PLUGIN_FILE);?>">
394
+ </td>
395
+ </tr>
396
  <!-- Scheduling -->
397
 
398
  <tr>
531
  <tr>
532
  <td rowspan="3"><h4>Other</h4></td>
533
  <td>SMAPSOLUTIONS API package for 1 year, worth 10 USD(1 fb account ,10 api calls per hour)</td>
534
+ <td>1 months free subscription
535
  </td>
536
  <td>3 months free subscription
537
  </td>
admin/destruction.php CHANGED
@@ -62,6 +62,7 @@ function fbap_free_destroy()
62
  delete_option('xyz_fbap_xyzscripts_hash_val');
63
  delete_option('xyz_fbap_xyzscripts_user_id');
64
  delete_option('xyz_fbap_enforce_og_tags');
 
65
  }
66
 
67
  register_uninstall_hook(XYZ_FBAP_PLUGIN_FILE,'fbap_free_network_destroy');
62
  delete_option('xyz_fbap_xyzscripts_hash_val');
63
  delete_option('xyz_fbap_xyzscripts_user_id');
64
  delete_option('xyz_fbap_enforce_og_tags');
65
+ delete_option('xyz_fbap_clear_fb_cache');
66
  }
67
 
68
  register_uninstall_hook(XYZ_FBAP_PLUGIN_FILE,'fbap_free_network_destroy');
admin/footer.php CHANGED
@@ -1,165 +1,165 @@
1
- <?php
2
- if( !defined('ABSPATH') ){ exit();}
3
- if(get_option('xyz_fbap_premium_version_ads')==1){?>
4
- <div id="xyz-wp-fbap-premium">
5
-
6
- <div style="float: left; padding: 0 5px">
7
- <h2 style="vertical-align: middle;">
8
- <a target="_blank" href="https://xyzscripts.com/wordpress-plugins/social-media-auto-publish/features">Fully
9
- Featured XYZ WP SMAP Premium Plugin</a> - Just 39 USD
10
- </h2>
11
- </div>
12
- <div class="xyz-fbap-buy-now">
13
- <a target="_blank" href="https://xyzscripts.com/members/product/purchase/XYZWPSMPPRE"><img
14
- src="<?php echo plugins_url("images/orange_buynow.png",XYZ_FBAP_PLUGIN_FILE); ?>">
15
- </a>
16
- </div>
17
- <div style="float: left; padding: 0 5px">
18
- <h2 style="vertical-align: middle;text-shadow: 1px 1px 1px #686868">
19
- ( <a href="<?php echo admin_url('admin.php?page=facebook-auto-publish-about');?>">Compare Features</a> )
20
- </h2>
21
- </div>
22
- </div>
23
- <?php }?>
24
-
25
- <div style="clear: both;"></div>
26
- <div style="width: 100%">
27
- <div class="xyz_fbap_social_media">
28
- <h3 class="xyz_fbap_inner_head">Follow Us </h3>
29
- <a target="_blank" href="http://facebook.com/xyzscripts" class="xyz_home_fbook"></a>
30
- <a target="_blank" href="http://twitter.com/xyzscripts" class="xyz_home_twitt"></a>
31
- <a style="margin-right:0px;" target="_blank" href="https://www.linkedin.com/company/xyzscripts" class="xyz_home_linkedin"></a>
32
- </div>
33
-
34
- <div class="xyz_fbap_sugession">
35
- <h3 class="xyz_fbap_inner_head">Support</h3>
36
- <p style="width:100%;"><a target="_blank" href="https://xyzscripts.com/donate/5" >Donate</a></p>
37
- <p style="width:100%;"><a target="_blank" href="https://xyzscripts.com/support/" >Contact Us</a></p>
38
- <p><a target="_blank" href="https://wordpress.org/support/plugin/facebook-auto-publish/reviews/" >Please Rate Us
39
- </a></p>
40
- <a target="_blank" href="https://wordpress.org/support/plugin/facebook-auto-publish/reviews/" ><span class="xyz_new_star"></span></a>
41
-
42
- <p style="width:100%;"><a target="_blank" href="https://wordpress.org/support/plugin/facebook-auto-publish/" >Create a ticket at Wordpress forum</a></p>
43
- </div>
44
- <div class="xyz_fbap_new_subscribe">
45
- <h3 class="xyz_fbap_inner_head">Stay tuned for our updates</h3>
46
-
47
- <script language="javascript">
48
- function check_email(emailString)
49
- {
50
- var mailPattern = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,})$/;
51
- var matchArray = emailString.match(mailPattern);
52
- if (emailString.length == 0)
53
- return false;
54
-
55
- if (matchArray == null) {
56
- return false;
57
- }else{
58
- return true;
59
- }
60
- }
61
-
62
-
63
- function verify_lists(form)
64
- {
65
-
66
- var total=0;
67
- var checkBox=form['chk[]'];
68
-
69
- if(checkBox.length){
70
-
71
- for(var i=0;i<checkBox.length;i++){
72
- checkBox[i].checked?total++:null;
73
- }
74
- }else{
75
-
76
- checkBox.checked?total++:null;
77
-
78
- }
79
- if(total>0){
80
- return true;
81
- }else{
82
- return false;
83
- }
84
-
85
- }
86
-
87
- function verify_fields()
88
- {
89
-
90
- if(check_email(document.email_subscription.email.value) == false){
91
- alert("Please check whether the email is correct.");
92
- document.email_subscription.email.select();
93
- return false;
94
- }else if(verify_lists(document.email_subscription)==false){
95
- alert("Select atleast one list.");
96
- }
97
- else{
98
- document.email_subscription.submit();
99
- }
100
-
101
- }
102
- </script>
103
- <?php global $current_user; wp_get_current_user(); ?>
104
- <form action="https://xyzscripts.com/newsletter/index.php?page=list/subscribe" method="post" name="email_subscription" id="email_subscription" target="_blank">
105
- <input type="hidden" name="fieldNameIds" value="1,">
106
- <input type="hidden" name="redirActive" value="https://xyzscripts.com/subscription/pending/XYZWPSMPPRE">
107
- <input type="hidden" name="redirPending" value="https://xyzscripts.com/subscription/active/XYZWPSMPPRE">
108
- <input type="hidden" name="mode" value="1">
109
- <input class="xyz_fbap_name" type="text" placeholder="Name" name="field1" value="<?php
110
- if ($current_user->user_firstname != "" || $current_user->user_lastname != "")
111
- {
112
- echo esc_html($current_user->user_firstname) . " " . esc_html($current_user->user_lastname);
113
- }
114
- else if (strcasecmp($current_user->display_name, 'admin')!=0 && strcasecmp($current_user->display_name , "administrator")!=0 )
115
- {
116
- echo esc_html($current_user->display_name);
117
- }
118
- else if (strcasecmp($current_user->user_login ,"admin")!=0 && strcasecmp($current_user->user_login , "administrator")!=0 )
119
- {
120
- echo esc_html($current_user->user_login);
121
- }
122
- ?>" >
123
- <input class="xyz_fbap_email" name="email"
124
- type="text" placeholder="Email" style="" value="<?php echo $current_user->user_email; ?>" />
125
-
126
- <input id="xyz_fbap_submit_fbap" class="sbmt_btn" type="submit" value="Subscribe" name="Submit" onclick="javascript: if(!verify_fields()) return false; " />
127
-
128
- <input type="hidden" name="listName" value="7,1,"/>
129
- </form>
130
- </div>
131
-
132
- <div class="xyz_fbap_inmotion">
133
- <a target="_blank" href="http://inmotion-hosting.evyy.net/c/1150074/260033/4222">
134
- <img src="<?php echo plugins_url()?>/facebook-auto-publish/images/xyz.png" class="xyz_fbap_inmotion_label"></a></div>
135
- </div>
136
-
137
- <div style="clear: both;"></div>
138
- <div style="width: 100%">
139
-
140
- <div class="xyz_fbap_our_plugins_new">
141
- <p class="xyz_fbap_plugin_head">Our Plugins : </p>
142
-
143
- <a target="_blank" href="https://wordpress.org/plugins/social-media-auto-publish/"><span>1</span>Social Media Auto Publish</a>
144
- <a target="_blank" href="https://wordpress.org/plugins/facebook-auto-publish/"><span>2</span>WP2Social Auto Publish</a>
145
- <a target="_blank" href="https://wordpress.org/plugins/twitter-auto-publish/"><span>3</span>WP Twitter Auto Publish</a>
146
- <a target="_blank" href="https://wordpress.org/plugins/linkedin-auto-publish/"><span>4</span>WP to LinkedIn Auto Publish</a>
147
- <a target="_blank" href="https://wordpress.org/plugins/insert-html-snippet/"><span>5</span>Insert HTML Snippet</a>
148
- <a target="_blank" href="https://wordpress.org/plugins/insert-php-code-snippet/"><span>6</span>Insert PHP Code Snippet</a>
149
- <a target="_blank" href="https://wordpress.org/plugins/contact-form-manager/"><span>7</span>Contact Form Manager</a>
150
- <a target="_blank" href="https://wordpress.org/plugins/newsletter-manager/"><span>8</span>Newsletter Manager</a>
151
- <a target="_blank" href="https://wordpress.org/plugins/lightbox-pop/"><span>9</span>Lightbox Pop</a>
152
- <a target="_blank" href="https://wordpress.org/plugins/full-screen-popup/"><span>10</span>Full Screen Popup</a>
153
- <a target="_blank" href="https://wordpress.org/plugins/popup-dialog-box/"><span>11</span>Popup Dialog Box</a>
154
- <a target="_blank" href="https://wordpress.org/plugins/quick-bar/"><span>12</span>Quick Bar</a>
155
- <a target="_blank" href="https://wordpress.org/plugins/quick-box-popup/"><span>13</span>Quick Box Popup</a>
156
- <a target="_blank" href="https://wordpress.org/plugins/custom-field-manager/"><span>14</span> Custom Field Manager</a>
157
- <a target="_blank" href="https://wordpress.org/plugins/wp-filter-posts/"><span>15</span> WP Filter Posts</a>
158
- <a target="_blank" href="https://wordpress.org/plugins/wp-gallery-manager/"><span>16</span> WP Gallery Manager</a>
159
- </div>
160
- </div>
161
- <div class="xyz_fbap_poweredBy">
162
- Powered by <a href="http://xyzscripts.com" target="_blank">XYZScripts</a>
163
- </div>
164
- <div style="clear: both;"></div>
165
- <p style="clear: both;"></p>
1
+ <?php
2
+ if( !defined('ABSPATH') ){ exit();}
3
+ if(get_option('xyz_fbap_premium_version_ads')==1){?>
4
+ <div id="xyz-wp-fbap-premium">
5
+
6
+ <div style="float: left; padding: 0 5px">
7
+ <h2 style="vertical-align: middle;">
8
+ <a target="_blank" href="https://xyzscripts.com/wordpress-plugins/social-media-auto-publish/features">Fully
9
+ Featured XYZ WP SMAP Premium Plugin</a> - Just 39 USD
10
+ </h2>
11
+ </div>
12
+ <div class="xyz-fbap-buy-now">
13
+ <a target="_blank" href="https://xyzscripts.com/members/product/purchase/XYZWPSMPPRE"><img
14
+ src="<?php echo plugins_url("images/orange_buynow.png",XYZ_FBAP_PLUGIN_FILE); ?>">
15
+ </a>
16
+ </div>
17
+ <div style="float: left; padding: 0 5px">
18
+ <h2 style="vertical-align: middle;text-shadow: 1px 1px 1px #686868">
19
+ ( <a href="<?php echo admin_url('admin.php?page=facebook-auto-publish-about');?>">Compare Features</a> )
20
+ </h2>
21
+ </div>
22
+ </div>
23
+ <?php }?>
24
+
25
+ <div style="clear: both;"></div>
26
+ <div style="width: 100%">
27
+ <div class="xyz_fbap_social_media">
28
+ <h3 class="xyz_fbap_inner_head">Follow Us </h3>
29
+ <a target="_blank" href="http://facebook.com/xyzscripts" class="xyz_home_fbook"></a>
30
+ <a target="_blank" href="http://twitter.com/xyzscripts" class="xyz_home_twitt"></a>
31
+ <a style="margin-right:0px;" target="_blank" href="https://www.linkedin.com/company/xyzscripts" class="xyz_home_linkedin"></a>
32
+ </div>
33
+
34
+ <div class="xyz_fbap_sugession">
35
+ <h3 class="xyz_fbap_inner_head">Support</h3>
36
+ <p style="width:100%;"><a target="_blank" href="https://xyzscripts.com/donate/5" >Donate</a></p>
37
+ <p style="width:100%;"><a target="_blank" href="https://xyzscripts.com/support/" >Contact Us</a></p>
38
+ <p><a target="_blank" href="https://wordpress.org/support/plugin/facebook-auto-publish/reviews/" >Please Rate Us
39
+ </a></p>
40
+ <a target="_blank" href="https://wordpress.org/support/plugin/facebook-auto-publish/reviews/" ><span class="xyz_new_star"></span></a>
41
+
42
+ <p style="width:100%;"><a target="_blank" href="https://wordpress.org/support/plugin/facebook-auto-publish/" >Create a ticket at Wordpress forum</a></p>
43
+ </div>
44
+ <div class="xyz_fbap_new_subscribe">
45
+ <h3 class="xyz_fbap_inner_head">Stay tuned for our updates</h3>
46
+
47
+ <script language="javascript">
48
+ function check_email(emailString)
49
+ {
50
+ var mailPattern = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,})$/;
51
+ var matchArray = emailString.match(mailPattern);
52
+ if (emailString.length == 0)
53
+ return false;
54
+
55
+ if (matchArray == null) {
56
+ return false;
57
+ }else{
58
+ return true;
59
+ }
60
+ }
61
+
62
+
63
+ function verify_lists(form)
64
+ {
65
+
66
+ var total=0;
67
+ var checkBox=form['chk[]'];
68
+
69
+ if(checkBox.length){
70
+
71
+ for(var i=0;i<checkBox.length;i++){
72
+ checkBox[i].checked?total++:null;
73
+ }
74
+ }else{
75
+
76
+ checkBox.checked?total++:null;
77
+
78
+ }
79
+ if(total>0){
80
+ return true;
81
+ }else{
82
+ return false;
83
+ }
84
+
85
+ }
86
+
87
+ function verify_fields()
88
+ {
89
+
90
+ if(check_email(document.email_subscription.email.value) == false){
91
+ alert("Please check whether the email is correct.");
92
+ document.email_subscription.email.select();
93
+ return false;
94
+ }else if(verify_lists(document.email_subscription)==false){
95
+ alert("Select atleast one list.");
96
+ }
97
+ else{
98
+ document.email_subscription.submit();
99
+ }
100
+
101
+ }
102
+ </script>
103
+ <?php global $current_user; wp_get_current_user(); ?>
104
+ <form action="https://xyzscripts.com/newsletter/index.php?page=list/subscribe" method="post" name="email_subscription" id="email_subscription" target="_blank">
105
+ <input type="hidden" name="fieldNameIds" value="1,">
106
+ <input type="hidden" name="redirActive" value="https://xyzscripts.com/subscription/pending/XYZWPSMPPRE">
107
+ <input type="hidden" name="redirPending" value="https://xyzscripts.com/subscription/active/XYZWPSMPPRE">
108
+ <input type="hidden" name="mode" value="1">
109
+ <input class="xyz_fbap_name" type="text" placeholder="Name" name="field1" value="<?php
110
+ if ($current_user->user_firstname != "" || $current_user->user_lastname != "")
111
+ {
112
+ echo esc_html($current_user->user_firstname) . " " . esc_html($current_user->user_lastname);
113
+ }
114
+ else if (strcasecmp($current_user->display_name, 'admin')!=0 && strcasecmp($current_user->display_name , "administrator")!=0 )
115
+ {
116
+ echo esc_html($current_user->display_name);
117
+ }
118
+ else if (strcasecmp($current_user->user_login ,"admin")!=0 && strcasecmp($current_user->user_login , "administrator")!=0 )
119
+ {
120
+ echo esc_html($current_user->user_login);
121
+ }
122
+ ?>" >
123
+ <input class="xyz_fbap_email" name="email"
124
+ type="text" placeholder="Email" style="" value="<?php echo $current_user->user_email; ?>" />
125
+
126
+ <input id="xyz_fbap_submit_fbap" class="sbmt_btn" type="submit" value="Subscribe" name="Submit" onclick="javascript: if(!verify_fields()) return false; " />
127
+
128
+ <input type="hidden" name="listName" value="7,1,"/>
129
+ </form>
130
+ </div>
131
+
132
+ <div class="xyz_fbap_inmotion">
133
+ <a target="_blank" href="http://inmotion-hosting.evyy.net/c/1150074/260033/4222">
134
+ <img src="<?php echo plugins_url()?>/facebook-auto-publish/images/xyz.png" class="xyz_fbap_inmotion_label"></a></div>
135
+ </div>
136
+
137
+ <div style="clear: both;"></div>
138
+ <div style="width: 100%">
139
+
140
+ <div class="xyz_fbap_our_plugins_new">
141
+ <p class="xyz_fbap_plugin_head">Our Plugins : </p>
142
+
143
+ <a target="_blank" href="https://wordpress.org/plugins/social-media-auto-publish/"><span>1</span>Social Media Auto Publish</a>
144
+ <a target="_blank" href="https://wordpress.org/plugins/facebook-auto-publish/"><span>2</span>WP2Social Auto Publish</a>
145
+ <a target="_blank" href="https://wordpress.org/plugins/twitter-auto-publish/"><span>3</span>WP Twitter Auto Publish</a>
146
+ <a target="_blank" href="https://wordpress.org/plugins/linkedin-auto-publish/"><span>4</span>WP to LinkedIn Auto Publish</a>
147
+ <a target="_blank" href="https://wordpress.org/plugins/insert-html-snippet/"><span>5</span>Insert HTML Snippet</a>
148
+ <a target="_blank" href="https://wordpress.org/plugins/insert-php-code-snippet/"><span>6</span>Insert PHP Code Snippet</a>
149
+ <a target="_blank" href="https://wordpress.org/plugins/contact-form-manager/"><span>7</span>Contact Form Manager</a>
150
+ <a target="_blank" href="https://wordpress.org/plugins/newsletter-manager/"><span>8</span>Newsletter Manager</a>
151
+ <a target="_blank" href="https://wordpress.org/plugins/lightbox-pop/"><span>9</span>Lightbox Pop</a>
152
+ <a target="_blank" href="https://wordpress.org/plugins/full-screen-popup/"><span>10</span>Full Screen Popup</a>
153
+ <a target="_blank" href="https://wordpress.org/plugins/popup-dialog-box/"><span>11</span>Popup Dialog Box</a>
154
+ <a target="_blank" href="https://wordpress.org/plugins/quick-bar/"><span>12</span>Quick Bar</a>
155
+ <a target="_blank" href="https://wordpress.org/plugins/quick-box-popup/"><span>13</span>Quick Box Popup</a>
156
+ <a target="_blank" href="https://wordpress.org/plugins/custom-field-manager/"><span>14</span> Custom Field Manager</a>
157
+ <a target="_blank" href="https://wordpress.org/plugins/wp-filter-posts/"><span>15</span> WP Filter Posts</a>
158
+ <a target="_blank" href="https://wordpress.org/plugins/wp-gallery-manager/"><span>16</span> WP Gallery Manager</a>
159
+ </div>
160
+ </div>
161
+ <div class="xyz_fbap_poweredBy">
162
+ Powered by <a href="http://xyzscripts.com" target="_blank">XYZScripts</a>
163
+ </div>
164
+ <div style="clear: both;"></div>
165
+ <p style="clear: both;"></p>
admin/install.php CHANGED
@@ -70,7 +70,7 @@ function fbap_install_free()
70
  add_option('xyz_fbap_premium_version_ads', '1');
71
  add_option('xyz_fbap_default_selection_edit', '0');
72
  // add_option('xyz_fbap_utf_decode_enable', '0');
73
- add_option('xyz_fbap_app_sel_mode','0');
74
  add_option('xyz_fbap_dnt_shw_notice','0');
75
  if(get_option('xyz_fbap_credit_dismiss') == "")
76
  add_option("xyz_fbap_credit_dismiss",'0');
@@ -81,6 +81,7 @@ function fbap_install_free()
81
  add_option('xyz_fbap_xyzscripts_user_id','');
82
  add_option('xyz_fbap_xyzscripts_hash_val','');
83
  add_option('xyz_fbap_enforce_og_tags','1');
 
84
  }
85
 
86
 
70
  add_option('xyz_fbap_premium_version_ads', '1');
71
  add_option('xyz_fbap_default_selection_edit', '0');
72
  // add_option('xyz_fbap_utf_decode_enable', '0');
73
+ add_option('xyz_fbap_app_sel_mode','1');
74
  add_option('xyz_fbap_dnt_shw_notice','0');
75
  if(get_option('xyz_fbap_credit_dismiss') == "")
76
  add_option("xyz_fbap_credit_dismiss",'0');
81
  add_option('xyz_fbap_xyzscripts_user_id','');
82
  add_option('xyz_fbap_xyzscripts_hash_val','');
83
  add_option('xyz_fbap_enforce_og_tags','1');
84
+ add_option('xyz_fbap_clear_fb_cache','0');
85
  }
86
 
87
 
admin/logs.php CHANGED
@@ -100,6 +100,7 @@ if( !defined('ABSPATH') ){ exit();}
100
  </fieldset>
101
 
102
  </form>
103
-
 
104
  </div>
105
 
100
  </fieldset>
101
 
102
  </form>
103
+ <div style="padding: 5px;color: #e67939;font-size: 14px;">For publishing a simple text message, it will take 1 API call,
104
+ Upload image option will take 2-3 API calls and attach link option take 1 API call(2 api calls, if enabled option for clearing cache).</div>
105
  </div>
106
 
admin/publish.php CHANGED
@@ -282,6 +282,7 @@ function xyz_fbap_link_publish($post_ID) {
282
 
283
  $xyz_fbap_pages_ids1=explode(",",$xyz_fbap_pages_ids);
284
  }
 
285
 
286
  foreach ($xyz_fbap_pages_ids1 as $key=>$value)
287
  {
@@ -300,6 +301,10 @@ function xyz_fbap_link_publish($post_ID) {
300
  'cookie' => true
301
  ));
302
  }
 
 
 
 
303
  $message1=str_replace('{POST_TITLE}', $name, $message);
304
  $message2=str_replace('{BLOG_TITLE}', $caption,$message1);
305
  $message3=str_replace('{PERMALINK}', $link, $message2);
@@ -464,7 +469,8 @@ function xyz_fbap_link_publish($post_ID) {
464
  'xyz_smap_app_name'=>$app_name,
465
  //'xyz_smap_secret_key' =>$xyz_fbap_secret_key,
466
  'xyz_fb_numericid' => $xyz_fbap_fb_numericid,
467
- 'xyz_smap_xyzscripts_userid'=>$xyz_fbap_xyzscripts_userid
 
468
  );
469
  $url=XYZ_SMAP_SOLUTION_PUBLISH_URL.'api/facebook.php';
470
  $result_smap_solns=xyz_fbap_post_to_smap_api($post_details,$url,$xyz_fbap_secret_key);
282
 
283
  $xyz_fbap_pages_ids1=explode(",",$xyz_fbap_pages_ids);
284
  }
285
+ $xyz_fbap_clear_fb_cache=get_option('xyz_fbap_clear_fb_cache');
286
 
287
  foreach ($xyz_fbap_pages_ids1 as $key=>$value)
288
  {
301
  'cookie' => true
302
  ));
303
  }
304
+ if($xyz_fbap_clear_fb_cache==1 && $xyz_fbap_app_sel_mode== 0 && ($posting_method==1 || $posting_method==2))
305
+ {
306
+ xyz_fbap_clear_open_graph_cache($link,$acces_token,$appid,$appsecret);
307
+ }
308
  $message1=str_replace('{POST_TITLE}', $name, $message);
309
  $message2=str_replace('{BLOG_TITLE}', $caption,$message1);
310
  $message3=str_replace('{PERMALINK}', $link, $message2);
469
  'xyz_smap_app_name'=>$app_name,
470
  //'xyz_smap_secret_key' =>$xyz_fbap_secret_key,
471
  'xyz_fb_numericid' => $xyz_fbap_fb_numericid,
472
+ 'xyz_smap_xyzscripts_userid'=>$xyz_fbap_xyzscripts_userid,
473
+ 'xyz_smap_clear_fb_cache'=>$xyz_fbap_clear_fb_cache
474
  );
475
  $url=XYZ_SMAP_SOLUTION_PUBLISH_URL.'api/facebook.php';
476
  $result_smap_solns=xyz_fbap_post_to_smap_api($post_details,$url,$xyz_fbap_secret_key);
admin/settings.php CHANGED
@@ -47,7 +47,7 @@ if(isset($_POST['fb']))
47
  if(isset($_POST['fbap_pages_list']))
48
  $ss=$_POST['fbap_pages_list'];
49
 
50
- $fbap_pages_list_ids="";$xyz_fbap_enforce_og_tags=0;
51
 
52
 
53
  if(!empty($ss))//$ss!="" && count($ss)>0
@@ -77,6 +77,7 @@ if(isset($_POST['fb']))
77
  $appsecret=sanitize_text_field($_POST['xyz_fbap_application_secret']);
78
  }
79
  $xyz_fbap_enforce_og_tags=intval($_POST['xyz_fbap_enforce_og_tags']);
 
80
  $messagetopost=$_POST['xyz_fbap_message'];
81
  if($app_name=="" && $posting_permission==1)
82
  {
@@ -118,6 +119,7 @@ if(isset($_POST['fb']))
118
  update_option('xyz_fbap_po_method',$posting_method);
119
  update_option('xyz_fbap_message',$messagetopost);
120
  update_option('xyz_fbap_enforce_og_tags', $xyz_fbap_enforce_og_tags);
 
121
  }
122
  }
123
  if(isset($_POST['fb']) && $erf==0)
@@ -401,6 +403,13 @@ function dethide_fbap(id)
401
  </td>
402
  </tr>
403
 
 
 
 
 
 
 
 
404
  <tr valign="top">
405
  <td>Message format for posting <img src="<?php echo $heimg?>"
406
  onmouseover="detdisplay_fbap('xyz_fb')" onmouseout="dethide_fbap('xyz_fb')" style="width:13px;height:auto;">
@@ -869,7 +878,7 @@ jQuery(document).ready(function() {
869
 
870
  var fbap_toggle_element_ids=['xyz_fbap_post_permission','xyz_fbap_include_pages',
871
  'xyz_fbap_include_posts',
872
- 'xyz_fbap_peer_verification','xyz_fbap_premium_version_ads','xyz_fbap_enforce_og_tags'];
873
  jQuery.each(fbap_toggle_element_ids, function( index, value ) {
874
  checkedval= jQuery("input[name='"+value+"']:checked").val();
875
  XyzFbapToggleRadio(checkedval,value);
@@ -970,7 +979,7 @@ jQuery("#select_all_pages").click(function(){
970
 
971
  var fbap_toggle_element_ids=['xyz_fbap_post_permission','xyz_fbap_include_pages',
972
  'xyz_fbap_include_posts',
973
- 'xyz_fbap_peer_verification','xyz_credit_link','xyz_fbap_premium_version_ads','xyz_fbap_include_categories','xyz_fbap_enforce_og_tags'];
974
 
975
  jQuery.each(fbap_toggle_element_ids, function( index, value ) {
976
  jQuery("#"+value+"_no").click(function(){
47
  if(isset($_POST['fbap_pages_list']))
48
  $ss=$_POST['fbap_pages_list'];
49
 
50
+ $fbap_pages_list_ids="";$xyz_fbap_enforce_og_tags=$xyz_fbap_clear_fb_cache=0;
51
 
52
 
53
  if(!empty($ss))//$ss!="" && count($ss)>0
77
  $appsecret=sanitize_text_field($_POST['xyz_fbap_application_secret']);
78
  }
79
  $xyz_fbap_enforce_og_tags=intval($_POST['xyz_fbap_enforce_og_tags']);
80
+ $xyz_fbap_clear_fb_cache=intval($_POST['xyz_fbap_clear_fb_cache']);
81
  $messagetopost=$_POST['xyz_fbap_message'];
82
  if($app_name=="" && $posting_permission==1)
83
  {
119
  update_option('xyz_fbap_po_method',$posting_method);
120
  update_option('xyz_fbap_message',$messagetopost);
121
  update_option('xyz_fbap_enforce_og_tags', $xyz_fbap_enforce_og_tags);
122
+ update_option('xyz_fbap_clear_fb_cache', $xyz_fbap_clear_fb_cache);
123
  }
124
  }
125
  if(isset($_POST['fb']) && $erf==0)
403
  </td>
404
  </tr>
405
 
406
+ <tr valign="top">
407
+ <td>Clear facebook cache before publishing to facebook</td>
408
+ <td class="switch-field">
409
+ <label id="xyz_fbap_clear_fb_cache_yes" class="xyz_fbap_toggle_off"><input type="radio" name="xyz_fbap_clear_fb_cache" value="1" <?php if(get_option('xyz_fbap_clear_fb_cache')==1) echo 'checked';?>/>Yes</label>
410
+ <label id="xyz_fbap_clear_fb_cache_no" class="xyz_fbap_toggle_on"><input type="radio" name="xyz_fbap_clear_fb_cache" value="0" <?php if(get_option('xyz_fbap_clear_fb_cache')==0) echo 'checked';?>/>No</label>
411
+ </td>
412
+ </tr>
413
  <tr valign="top">
414
  <td>Message format for posting <img src="<?php echo $heimg?>"
415
  onmouseover="detdisplay_fbap('xyz_fb')" onmouseout="dethide_fbap('xyz_fb')" style="width:13px;height:auto;">
878
 
879
  var fbap_toggle_element_ids=['xyz_fbap_post_permission','xyz_fbap_include_pages',
880
  'xyz_fbap_include_posts',
881
+ 'xyz_fbap_peer_verification','xyz_fbap_premium_version_ads','xyz_fbap_enforce_og_tags','xyz_fbap_clear_fb_cache'];
882
  jQuery.each(fbap_toggle_element_ids, function( index, value ) {
883
  checkedval= jQuery("input[name='"+value+"']:checked").val();
884
  XyzFbapToggleRadio(checkedval,value);
979
 
980
  var fbap_toggle_element_ids=['xyz_fbap_post_permission','xyz_fbap_include_pages',
981
  'xyz_fbap_include_posts',
982
+ 'xyz_fbap_peer_verification','xyz_credit_link','xyz_fbap_premium_version_ads','xyz_fbap_include_categories','xyz_fbap_enforce_og_tags','xyz_fbap_clear_fb_cache'];
983
 
984
  jQuery.each(fbap_toggle_element_ids, function( index, value ) {
985
  jQuery("#"+value+"_no").click(function(){
css/style.css CHANGED
@@ -1,757 +1,757 @@
1
- #system_notice_area {
2
- position: fixed;
3
- margin-bottom:40px;
4
- left:25%;
5
- width:50%;
6
- height:20px;
7
- border-radius:5px;
8
- -moz-border-radius:5px;
9
- -webkit-border-radius:5px;
10
- font-weight:bold;
11
- display:none;
12
- padding:3px;
13
- color: #000000;
14
- text-align: center;
15
- top: 0px;
16
- z-index: 100000;
17
-
18
- }
19
- .xyz_suggest,.xyz_star,.xyz_donate,.xyz_fbook,.xyz_support,.xyz_twitt,.xyz_gplus,.xyz_linkdin{
20
- height:16px;
21
- background-repeat: no-repeat;
22
- background-size: contain;
23
- padding-left: 20px;
24
- text-decoration: none;
25
-
26
- vertical-align: middle;
27
- display: inline-block;
28
-
29
- }
30
- .xyz_suggest{
31
-
32
- background-image: url('../images/suggest.png');
33
- }
34
-
35
- .xyz_star{
36
- background-image: url('../images/star.png');
37
- }
38
-
39
- .xyz_donate{
40
-
41
- background-image: url('../images/donate.png');
42
- }
43
-
44
- .xyz_support{
45
-
46
- background-image: url('../images/support.png');
47
- }
48
- .xyz_home_fbook {
49
-
50
- background-image: url('../images/facebook.png');
51
- }
52
-
53
-
54
- .xyz_home_twitt {
55
-
56
- background-image: url('../images/twitter.png');
57
- }
58
- .xyz_home_gplus {
59
-
60
- background-image: url('../images/gplus.png');
61
- }
62
- .xyz_home_linkedin {
63
-
64
- background-image: url('../images/linkedin.png');
65
- }
66
- .xyz_fbook{
67
-
68
- background-image: url('../images/facebook.png');
69
- }
70
- .xyz_twitt{
71
-
72
- background-image: url('../images/twitter.png');
73
- }
74
- .xyz_gplus{
75
-
76
- background-image: url('../images/gplus.png');
77
- }
78
-
79
- .xyz_linkdin{
80
-
81
- background-image: url('../images/linkedin.png');
82
- }
83
-
84
-
85
- #facebook-auto-publish .xyz_fbook{
86
- margin-left: 3px;
87
- }
88
-
89
- #facebook-auto-publish .xyz_twitt{
90
- margin-left: 3px;
91
- }
92
-
93
- #facebook-auto-publish .xyz_gplus{
94
- margin-left: 3px;
95
- }
96
-
97
- #facebook-auto-publish .xyz_linkdin{
98
- margin-left: 3px;
99
- }
100
-
101
- #facebook-auto-publish .xyz_support{
102
- margin-left: 3px;margin-right: -3px;
103
- }
104
-
105
- #facebook-auto-publish .plugin-version-author-uri {
106
-
107
- background-color: #F4F4F4;
108
- min-height:16px;
109
- border-radius:5px;
110
- margin-bottom: 10px;
111
- font-weight:bold;
112
- padding: 5px;
113
- color: #111111;
114
-
115
- -webkit-box-shadow: 0 8px 6px -6px black;
116
- -moz-box-shadow: 0 8px 6px -6px black;
117
- box-shadow: 0 8px 6px -6px black;
118
-
119
- }
120
-
121
- #facebook-auto-publish th,#facebook-auto-publish td{
122
- background: #a9e8f5; /* Old browsers */
123
- background: linear-gradient( #ffffff,#a9e8f5 ); /* W3C */
124
- }
125
- #facebook-auto-publish .plugin-version-author-uri a,
126
- #facebook-auto-publish .plugin-version-author-uri a:link,
127
- #facebook-auto-publish .plugin-version-author-uri a:hover,
128
- #facebook-auto-publish .plugin-version-author-uri a:active,
129
- #facebook-auto-publish .plugin-version-author-uri a:visited{
130
- color: #111111;
131
- text-decoration: none;
132
-
133
- }
134
- #facebook-auto-publish .plugin-version-author-uri a:hover{
135
-
136
- color:#cc811a;
137
- }
138
- #facebook-auto-publish .plugin-title{
139
-
140
- background: url('images/xyz_logo.png'),linear-gradient( #ffffff,#a9e8f5 );
141
- background-repeat: no-repeat;
142
- background-position: left bottom;
143
-
144
- }
145
-
146
- .xyz-premium-comparison
147
- {
148
- width: 99%;
149
- padding:0px;
150
- border: 1px solid #CCCCCC;
151
- border-radius:3px;
152
- }
153
- .xyz-premium-comparison td
154
- {
155
- padding: 1px;
156
- border: 1px solid #CCCCCC;
157
- height: 25px;
158
- }
159
-
160
- /* Buy Now - button bounce style*/
161
- img.hoverImages {
162
- margin-bottom:20px;
163
- -webkit-transition: margin 0.2s ease-out;
164
- -moz-transition: margin 0.2s ease-out;
165
- -o-transition: margin 0.2s ease-out;
166
- }
167
- img.hoverImages:hover {
168
- cursor:pointer;
169
- margin-top: 5px;
170
- }
171
-
172
-
173
- #system_notice_area_dismiss{
174
- color: #FFFFFF;
175
- cursor: pointer;
176
- }
177
- .system_notice_area_style1 {
178
- background: #00C348;
179
- border: 1px solid green;
180
- }
181
-
182
- .system_notice_area_style0 {
183
- background: #FA5A6A;
184
- border: 1px solid brown;
185
- }
186
-
187
- .submit_fbap_new{
188
- background: #698600;
189
- color: #f7f7f7 !important;
190
- border-radius: 2px !important;
191
- border: none;
192
- font-family: "Helvetica Neue",sans-serif;
193
- font-size: 13px;
194
- cursor: pointer;
195
- padding: 8px 15px;
196
- font-weight: 500;
197
- text-transform: uppercase;
198
- outline: 0;
199
- }
200
-
201
- .fbap_informationdiv {
202
- background: none repeat scroll 0 0 #9FDAEE;
203
- border: 1px solid #209BD4;
204
- border-radius: 5px 5px 5px 5px;
205
- box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
206
- float: left;
207
- padding: 10px;
208
- position: absolute;
209
- z-index: 1200;
210
- }
211
- .xyz_feedback{
212
- background: #CEEAF7; /* Old browsers */
213
- border: 1px solid #64cfe8;
214
- border-radius:3px;
215
- width: 98%;
216
- min-height:40px;
217
- height:auto;
218
- padding-left: 10px;
219
- padding-top: 10px;
220
- font-weight: bold;
221
- line-height: 20px;
222
-
223
- }
224
-
225
- .xyz_feedback a{
226
- text-decoration: none
227
- }
228
-
229
- .xyz_subscribe{
230
- background: #bae598; /* Old browsers */
231
- border: 1px solid #4d8a1d;
232
- border-radius:3px;
233
- width: 98%;
234
- line-height:20px;
235
- min-height:45px;
236
- height:auto;
237
- padding-left: 10px;
238
- padding-top: 10px;
239
-
240
- }
241
- .xyz_subscribe td{
242
- padding:0;
243
- }
244
-
245
- .xyz_plugins{
246
- background: #F2F2F2; /* Old browsers */
247
- border: 1px solid #DFDFDF;
248
- border-radius:3px;
249
- width: 98%;
250
- padding-left: 10px;
251
- padding-top:10px;
252
- min-height:50px;
253
- height:auto;
254
- margin-top:13px;
255
- line-height: 20px;
256
-
257
- }
258
- .xyz_fbap_poweredBy{
259
- padding-top: 10px;float:left; text-align: center; width: 100%;
260
- }
261
-
262
- .xyz_fbap_poweredBy a{
263
- text-decoration: none;
264
- }
265
-
266
- .submit_fbap{
267
- background:#25A6E1;
268
- background:-moz-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
269
- background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#25A6E1),color-stop(100%,#188BC0));
270
- background:-webkit-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
271
- background:-o-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
272
- background:-ms-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
273
- background:linear-gradient(top,#25A6E1 0%,#188BC0 100%);
274
- filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#25A6E1",endColorstr="#188BC0",GradientType=0);
275
- color:#ffffff;
276
- font-family:"Helvetica Neue",sans-serif;
277
- font-size:13px;
278
- cursor:pointer;
279
- color:#FFFFFF !important;border-radius:4px !important;
280
- border:1px solid #1A87B9;height: 30px;
281
- padding-left: 15px;
282
- padding-right: 15px;
283
- }
284
- #xyz-wp-fbap-premium {
285
- border: 1px solid #FCC328;
286
- margin-bottom: 20px;
287
- margin-top: 20px;
288
- background-color: #FFF6D6;
289
- padding: 3px;
290
- width: 98%;
291
- border-radius:3px;
292
- float: left;
293
- }
294
- a.xyz_fbap_link:hover{text-decoration:underline;}
295
- .xyz_fbap_link{text-decoration:none;font-weight: bold;margin-left:8px;}
296
-
297
- .xyz_fbap_widefat_table input[type="text"], .xyz_fbap_widefat_table input[type="password"], .xyz_fbap_widefat_table input[type="email"], .xyz_fbap_widefat_table input[type="number"], .xyz_fbap_widefat_table input[type="search"], .xyz_fbap_widefat_table input[type="tel"], .xyz_fbap_widefat_table input[type="url"], .xyz_fbap_widefat_table select {
298
- width: 200px;padding: 5px !important;height: 2.35em !important;
299
- }
300
- .xyz_fbap_widefat_table textarea
301
- {
302
- width: 200px;padding: 5px !important;height: 80px !important;
303
- }
304
-
305
- .xyz_fbap_metalist_table{
306
- width: 100%;
307
- }
308
-
309
- .xyz_fbap_pleft15{
310
- padding-left: 15px;
311
- }
312
-
313
- .xyz_fbap_meta_acclist_table{
314
- width: 100%;border: 1px solid #DFDFDF;border-radius:3px; margin-top: 8px;padding-bottom: 5px;
315
- }
316
- .xyz_fbap_meta_acclist_table_td{
317
- background: linear-gradient(to top, #ECECEC, #F9F9F9) repeat scroll 0 0 #F1F1F1;border-bottom: 1px solid #DFDFDF;height: 25px;
318
- }
319
-
320
- .xyz_fbap_meta_acclist_table select ,.xyz_fbap_meta_acclist_table textarea{
321
- width: 200px;padding: 5px !important;height: 2.35em !important;
322
- }
323
-
324
- a {
325
- text-decoration: none;
326
- }
327
- /*new design start*/
328
- .xyz_fbap_social_media {
329
- background-color: #456a72;
330
- width: 22%;
331
- float: left;
332
- min-height: 130px;
333
- margin: 10px 10px 10px 0px;
334
- padding: 10px;
335
- border: 1px solid #456a72;
336
- border-radius: 3px;
337
- }
338
- .xyz_fbap_sugession {
339
- background-color: #571B35;
340
- width: 20%;
341
- float: left;
342
- min-height: 130px;
343
- margin: 10px 10px 10px 0px;
344
- padding: 10px;
345
- border: 1px solid #731C47;
346
- border-radius: 3px;
347
- font-size: 12px;
348
- color: #ffffff;
349
- }
350
- .xyz_fbap_new_subscribe {
351
- background-color: #c82e53;
352
- width: 27%;
353
- float: left;
354
- min-height: 130px;
355
- margin: 10px 10px 10px 0px;
356
- padding: 10px;
357
- border: 1px solid #BE2963;
358
- border-radius: 3px;
359
- }
360
- .xyz_fbap_inmotion {
361
-
362
- width: 21%;
363
- float: left;
364
- min-height: 130px;
365
- margin: 0px 0px 0px 0px;
366
- }
367
- .xyz_fbap_sugession a {
368
- color: #D7B740;
369
- text-decoration: underline;
370
- }
371
-
372
- .xyz_fbap_sugession a:hover{color:#fafa66; text-decoration:underline;}
373
- .xyz_fbap_sugession p{
374
- display: block;
375
- float: left;
376
- line-height: 20px;
377
- width: 100%;
378
- margin: 0px; width:50%;}
379
-
380
- .xyz_new_star{background-image: url(../images/new_star.png);
381
- width: 80px;
382
- height: 20px;
383
- display: block;
384
- background-repeat: no-repeat;
385
- float: left;
386
- }
387
-
388
- .sbmt_btn{ border: none;
389
- color: #ffffff;
390
- background-color: #4e0013;
391
- padding: 5px 10px;
392
- border-radius: 3px;
393
- cursor: pointer;}
394
-
395
- .xyz_fbap_inmotion a:hover{color:#94dbff; text-decoration:underline;}
396
-
397
- .xyz_fbap_inmotion_label{
398
- height: 169px !important;
399
- display: block;
400
- margin: auto;
401
- width:auto !important;}
402
-
403
- .xyz_fbap_new_subscribe input{font-size:11px;margin: 5px;}
404
-
405
- .xyz_fbap_social_media a{
406
- margin: 0px 13px 5px 0px;
407
- border: 1px solid #ddd;
408
- width: 30px;
409
- height: 30px;
410
- padding-left: 0px;
411
- display: block;
412
- float: left;}
413
-
414
- .xyz_fbap_inner_head{ color: #ffffff;
415
- font-weight: 300;
416
- border-bottom: 1px solid #eee;
417
- margin: 0px 0px 10px;
418
- padding-bottom: 10px;}
419
-
420
- .xyz_fbap_plugin_head{margin: 0px;
421
- font-size: 22px;
422
- font-weight: 300;
423
- padding: 0px 10px 5px;}
424
-
425
- .xyz_fbap_name{border:none !important; width:46% !important;}
426
- .xyz_fbap_email{border:none !important; width:46% !important;}
427
-
428
- .xyz_fbap_our_plugins_new a{
429
- text-decoration: none;
430
- display: block;
431
- background-color: #ddd;
432
- float: left;
433
- width: 23%;
434
- margin: 1px;
435
- padding: 0px 10px 0px 0px;
436
- color: #094969;
437
- outline: 0 !important;
438
- line-height: 27px;
439
- }
440
- .xyz_fbap_our_plugins_new a:hover{text-decoration:underline;}
441
-
442
- .xyz_fbap_our_plugins_new a:active{box-shadow:none !important;}
443
-
444
- .xyz_fbap_our_plugins_new a span{
445
- background-color: #00a0d2;
446
- color: #FFFFFF;
447
- width: 30px;
448
- min-height: 28px;
449
- display: block;
450
- float: left;
451
- text-align: center;
452
- margin-right: 10px;
453
- border-right: 2px solid #fff;}
454
-
455
- .xyz_rate_btn{color: #E77E22 !important;
456
- text-decoration: none !important;
457
- margin-right: 4px !important;
458
- font-weight: bold;
459
- background-color: #fff1d6 !important;
460
- border: 1px solid #E77E22 !important;
461
- box-shadow:none !important;}
462
-
463
- .xyz_backlink_btn{color: #00a016 !important;
464
- text-decoration: none !important;
465
- margin-right: 4px !important;
466
- font-weight: bold;
467
- background-color: #f0fff2 !important;
468
- border: 1px solid #00a016 !important;
469
- box-shadow:none !important;}
470
-
471
- .xyz_share_btn{color: #177ABD !important;
472
- text-decoration: none !important;
473
- margin-right: 4px !important;
474
- font-weight: bold;
475
- border: 1px solid #177ABD !important;
476
- background-color: #edf8ff !important;
477
- box-shadow:none !important;}
478
-
479
- .xyz_donate_btn{color: #C12AA2 !important;
480
- text-decoration: none !important;
481
- margin-right: 4px !important;
482
- font-weight: bold;
483
- border: 1px solid #C12AA2 !important;
484
- background-color: #feeafa !important;
485
- box-shadow:none !important;}
486
-
487
- .xyz_show_btn{color: #F15E77 !important;
488
- text-decoration: none !important;
489
- margin-right: 4px !important;
490
- font-weight: bold;
491
- border: 1px solid #F15E77 !important;
492
- background-color: #ffeddf !important;
493
- box-shadow: none !important;}
494
-
495
- @media screen and (max-width: 1351px) {
496
-
497
- .xyz_fbap_social_media{width:21%;}
498
-
499
- .xyz_fbap_new_subscribe{width:24%;}
500
-
501
- .xyz_fbap_inmotion{width:21%;}
502
-
503
- .xyz_fbap_sugession{width:20%;}
504
-
505
- .xyz_fbap_name{border:none !important; width:45% !important;}
506
-
507
- .xyz_fbap_email{border:none !important; width:45% !important;}
508
-
509
- .xyz_fbap_our_plugins_new a{width:23%;}
510
-
511
- }
512
-
513
- @media screen and (max-width: 1251px) {
514
-
515
- .xyz_fbap_social_media{width:21%;}
516
-
517
- .xyz_fbap_new_subscribe{width:24%;}
518
-
519
- .xyz_fbap_inmotion{width:21%;}
520
-
521
- .xyz_fbap_sugession{width:22%;}
522
-
523
- .xyz_fbap_name{border:none !important; width:45% !important;}
524
-
525
- .xyz_fbap_email{border:none !important; width:45% !important;}
526
-
527
- #xyz_fbap_submit_fbap{line-height:20px;}
528
-
529
-
530
- .xyz_fbap_our_plugins_new a{width:23.6%;}
531
- }
532
-
533
- @media screen and (max-width:1155px)
534
- {
535
- .xyz_fbap_social_media{width:45%;}
536
- .xyz_fbap_new_subscribe{width:45%;}
537
- .xyz_fbap_inmotion{width:45%;}
538
- .xyz_fbap_sugession{width:45%;}
539
- .xyz_fbap_our_plugins_new a{width:31%;}
540
- }
541
-
542
-
543
- @media screen and (max-width: 782px)
544
- {
545
- .xyz_fbap_social_media{width:44%;}
546
-
547
- .xyz_fbap_new_subscribe{width:44%;}
548
-
549
- .xyz_fbap_inmotion{width:44%;}
550
-
551
- .xyz_fbap_sugession{width:44%;}
552
-
553
- .xyz_fbap_our_plugins_new a{width:30%;}
554
-
555
- .xyz_fbap_name{border:none !important; width:46% !important;}
556
-
557
- .xyz_fbap_email{border:none !important; width:46% !important;}
558
- }
559
-
560
-
561
- @media screen and (max-width: 768px)
562
- {
563
- #xyz_fbap_submit_fbap{line-height:20px;}
564
- .xyz_fbap_our_plugins_new a{width:30%; font-size:11px !important;}
565
- }
566
-
567
-
568
- @media screen and (max-width: 675px)
569
- {
570
- .xyz_fbap_our_plugins_new a{width:45%; font-size:11px !important;}
571
- .xyz_fbap_name{border:none !important; width:95% !important;}
572
- .xyz_fbap_email {
573
- border: none !important;
574
- width: 95% !important;
575
- }
576
- .xyz_fbap_inmotion_label {
577
- height: 185px;
578
- display: block;
579
- margin: auto;
580
- }
581
- }
582
-
583
-
584
- @media screen and (max-width: 562px)
585
- {
586
- .xyz_fbap_sugession{width:92.5%;}
587
-
588
-
589
- .xyz_fbap_new_subscribe{width:92.5%;}
590
-
591
-
592
- .xyz_fbap_social_media{width:92.5%;}
593
- .xyz_fbap_inmotion{width:92.5%;}
594
- .xyz_fbap_email {
595
- border: none !important;
596
- width: 95% !important;
597
- }
598
- }
599
-
600
-
601
- @media screen and (max-width: 532px){
602
-
603
-
604
- .xyz_fbap_social_media{width:92.5%;}
605
-
606
- .xyz_fbap_new_subscribe{width:92.5%;}
607
-
608
- .xyz_fbap_inmotion{width:92.5%;}
609
-
610
- .xyz_fbap_sugession{width:92.5%;}
611
-
612
- .xyz_fbap_our_plugins_new a{width:92.5%;}
613
-
614
- .xyz_fbap_name{border:none !important; width:95% !important;}
615
-
616
- .xyz_fbap_email{border:none !important; width:95% !important;}
617
- }
618
-
619
-
620
- /*new design end*/
621
- .switch-field input[type=radio] {
622
- position: absolute !important;
623
- clip: rect(0, 0, 0, 0);
624
- height: 1px;
625
- width: 1px;
626
- border: 0;
627
- overflow: hidden;
628
- }
629
-
630
- .switch-field label {
631
- float: left;
632
- }
633
-
634
- .switch-field label {
635
- display: inline-block;
636
- color: rgba(0, 0, 0, 0.6);
637
- width: 50px;
638
- font-weight: normal;
639
- text-align: center;
640
- text-shadow: none;
641
- padding: 6px 14px;
642
- -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
643
- box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
644
- -webkit-transition: all 0.1s ease-in-out;
645
- -moz-transition: all 0.1s ease-in-out;
646
- -ms-transition: all 0.1s ease-in-out;
647
- -o-transition: all 0.1s ease-in-out;
648
- transition: all 0.1s ease-in-out;
649
- }
650
- .switch-field label:hover {
651
- cursor: pointer;
652
- }
653
- .switch-field label:first-of-type {
654
- border-radius: 4px 0 0 4px;min-width: 50px;width:auto;
655
- }
656
- .switch-field label:last-of-type {
657
- border-radius: 0 4px 4px 0;min-width: 50px;width:auto;
658
- }
659
- .scroll_checkbox
660
- {
661
- border: 2px solid #ccc;
662
- width: 200px;
663
- height: 150px;
664
- overflow-y: scroll;
665
- overflow-x: visible;
666
- }
667
- .toplevel_page_facebook-auto-publish-settings img{
668
- width:20px;
669
- height:auto;
670
- }
671
- .xyz_fbap_toggle_off
672
- {
673
- background-color:#dddddd !important;
674
- color:#888888 !important;
675
- font-weight:normal !important;
676
- }
677
- .xyz_fbap_toggle_on
678
- {
679
- background-color:#006CBF !important;
680
- color:#ffffff !important;
681
- font-weight:bold !important;
682
- }
683
- .xyz-fbap-buy-now{
684
- float: left;
685
- margin-top: 3px;
686
- }
687
- .xyz-fbap-buy-now img{
688
- width:148px !important;
689
- height:38px !important;
690
- }
691
- .xyz-fbap-buy-button {
692
- display:block;
693
- color:white;
694
- padding:5px 21px;
695
- background: #545454;
696
- border: 0;
697
- border-bottom: 2px solid #545454;
698
- cursor: pointer;
699
- -webkit-box-shadow: inset 0 -2px #545454;
700
- box-shadow: inset 0 -2px #545454;
701
- text-decoration: none;
702
- font-size: 14px;
703
- font-weight: bold;
704
- border-radius:3px;
705
- text-align: center;
706
- }
707
- .xyz_fbap_td_custom a {
708
- font-size:13px;
709
- }
710
- /* Style the tab */
711
- .xyz_fbap_tab {
712
- overflow: hidden;
713
- background-color: #f1f1f1;
714
- }
715
-
716
- /* Style the buttons inside the tab */
717
- .xyz_fbap_tab button {
718
- float: left;
719
- border: none;
720
- outline: none;
721
- cursor: pointer;
722
- padding: 14px 16px;
723
- transition: 0.3s;
724
- font-size: 17px;
725
- background-color: #cecece;
726
- color: #006CBF;
727
- margin-right: 2px;
728
- border-radius: 8px 8px 0px 0px;
729
- border-top: 1px solid #b9aeae;
730
- border-right: 1px solid #b9aeae;
731
- border-left: 1px solid #b9aeae;
732
- border-bottom: 1px solid #fff;
733
- font-weight: 600;
734
- }
735
-
736
- /* Change background color of buttons on hover */
737
- .xyz_fbap_tab button:hover {
738
- background-color: #cecece;
739
- }
740
-
741
- /* Create an active/current tablink class */
742
- .xyz_fbap_tab button.active {
743
- background-color: #ffffff;
744
- color: #006CBF;
745
- }
746
-
747
-
748
- /* Style the tab content */
749
- .xyz_fbap_tabcontent {
750
- display: none;
751
- padding: 6px 12px;
752
- border: 1px solid #ccc;
753
- margin-top: -2px;
754
- }
755
-
756
-
757
  .xyz_fbap_widefat_table h2{color: #006CBF;}
1
+ #system_notice_area {
2
+ position: fixed;
3
+ margin-bottom:40px;
4
+ left:25%;
5
+ width:50%;
6
+ height:20px;
7
+ border-radius:5px;
8
+ -moz-border-radius:5px;
9
+ -webkit-border-radius:5px;
10
+ font-weight:bold;
11
+ display:none;
12
+ padding:3px;
13
+ color: #000000;
14
+ text-align: center;
15
+ top: 0px;
16
+ z-index: 100000;
17
+
18
+ }
19
+ .xyz_suggest,.xyz_star,.xyz_donate,.xyz_fbook,.xyz_support,.xyz_twitt,.xyz_gplus,.xyz_linkdin{
20
+ height:16px;
21
+ background-repeat: no-repeat;
22
+ background-size: contain;
23
+ padding-left: 20px;
24
+ text-decoration: none;
25
+
26
+ vertical-align: middle;
27
+ display: inline-block;
28
+
29
+ }
30
+ .xyz_suggest{
31
+
32
+ background-image: url('../images/suggest.png');
33
+ }
34
+
35
+ .xyz_star{
36
+ background-image: url('../images/star.png');
37
+ }
38
+
39
+ .xyz_donate{
40
+
41
+ background-image: url('../images/donate.png');
42
+ }
43
+
44
+ .xyz_support{
45
+
46
+ background-image: url('../images/support.png');
47
+ }
48
+ .xyz_home_fbook {
49
+
50
+ background-image: url('../images/facebook.png');
51
+ }
52
+
53
+
54
+ .xyz_home_twitt {
55
+
56
+ background-image: url('../images/twitter.png');
57
+ }
58
+ .xyz_home_gplus {
59
+
60
+ background-image: url('../images/gplus.png');
61
+ }
62
+ .xyz_home_linkedin {
63
+
64
+ background-image: url('../images/linkedin.png');
65
+ }
66
+ .xyz_fbook{
67
+
68
+ background-image: url('../images/facebook.png');
69
+ }
70
+ .xyz_twitt{
71
+
72
+ background-image: url('../images/twitter.png');
73
+ }
74
+ .xyz_gplus{
75
+
76
+ background-image: url('../images/gplus.png');
77
+ }
78
+
79
+ .xyz_linkdin{
80
+
81
+ background-image: url('../images/linkedin.png');
82
+ }
83
+
84
+
85
+ #facebook-auto-publish .xyz_fbook{
86
+ margin-left: 3px;
87
+ }
88
+
89
+ #facebook-auto-publish .xyz_twitt{
90
+ margin-left: 3px;
91
+ }
92
+
93
+ #facebook-auto-publish .xyz_gplus{
94
+ margin-left: 3px;
95
+ }
96
+
97
+ #facebook-auto-publish .xyz_linkdin{
98
+ margin-left: 3px;
99
+ }
100
+
101
+ #facebook-auto-publish .xyz_support{
102
+ margin-left: 3px;margin-right: -3px;
103
+ }
104
+
105
+ #facebook-auto-publish .plugin-version-author-uri {
106
+
107
+ background-color: #F4F4F4;
108
+ min-height:16px;
109
+ border-radius:5px;
110
+ margin-bottom: 10px;
111
+ font-weight:bold;
112
+ padding: 5px;
113
+ color: #111111;
114
+
115
+ -webkit-box-shadow: 0 8px 6px -6px black;
116
+ -moz-box-shadow: 0 8px 6px -6px black;
117
+ box-shadow: 0 8px 6px -6px black;
118
+
119
+ }
120
+
121
+ #facebook-auto-publish th,#facebook-auto-publish td{
122
+ background: #a9e8f5; /* Old browsers */
123
+ background: linear-gradient( #ffffff,#a9e8f5 ); /* W3C */
124
+ }
125
+ #facebook-auto-publish .plugin-version-author-uri a,
126
+ #facebook-auto-publish .plugin-version-author-uri a:link,
127
+ #facebook-auto-publish .plugin-version-author-uri a:hover,
128
+ #facebook-auto-publish .plugin-version-author-uri a:active,
129
+ #facebook-auto-publish .plugin-version-author-uri a:visited{
130
+ color: #111111;
131
+ text-decoration: none;
132
+
133
+ }
134
+ #facebook-auto-publish .plugin-version-author-uri a:hover{
135
+
136
+ color:#cc811a;
137
+ }
138
+ #facebook-auto-publish .plugin-title{
139
+
140
+ background: url('images/xyz_logo.png'),linear-gradient( #ffffff,#a9e8f5 );
141
+ background-repeat: no-repeat;
142
+ background-position: left bottom;
143
+
144
+ }
145
+
146
+ .xyz-premium-comparison
147
+ {
148
+ width: 99%;
149
+ padding:0px;
150
+ border: 1px solid #CCCCCC;
151
+ border-radius:3px;
152
+ }
153
+ .xyz-premium-comparison td
154
+ {
155
+ padding: 1px;
156
+ border: 1px solid #CCCCCC;
157
+ height: 25px;
158
+ }
159
+
160
+ /* Buy Now - button bounce style*/
161
+ img.hoverImages {
162
+ margin-bottom:20px;
163
+ -webkit-transition: margin 0.2s ease-out;
164
+ -moz-transition: margin 0.2s ease-out;
165
+ -o-transition: margin 0.2s ease-out;
166
+ }
167
+ img.hoverImages:hover {
168
+ cursor:pointer;
169
+ margin-top: 5px;
170
+ }
171
+
172
+
173
+ #system_notice_area_dismiss{
174
+ color: #FFFFFF;
175
+ cursor: pointer;
176
+ }
177
+ .system_notice_area_style1 {
178
+ background: #00C348;
179
+ border: 1px solid green;
180
+ }
181
+
182
+ .system_notice_area_style0 {
183
+ background: #FA5A6A;
184
+ border: 1px solid brown;
185
+ }
186
+
187
+ .submit_fbap_new{
188
+ background: #698600;
189
+ color: #f7f7f7 !important;
190
+ border-radius: 2px !important;
191
+ border: none;
192
+ font-family: "Helvetica Neue",sans-serif;
193
+ font-size: 13px;
194
+ cursor: pointer;
195
+ padding: 8px 15px;
196
+ font-weight: 500;
197
+ text-transform: uppercase;
198
+ outline: 0;
199
+ }
200
+
201
+ .fbap_informationdiv {
202
+ background: none repeat scroll 0 0 #9FDAEE;
203
+ border: 1px solid #209BD4;
204
+ border-radius: 5px 5px 5px 5px;
205
+ box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
206
+ float: left;
207
+ padding: 10px;
208
+ position: absolute;
209
+ z-index: 1200;
210
+ }
211
+ .xyz_feedback{
212
+ background: #CEEAF7; /* Old browsers */
213
+ border: 1px solid #64cfe8;
214
+ border-radius:3px;
215
+ width: 98%;
216
+ min-height:40px;
217
+ height:auto;
218
+ padding-left: 10px;
219
+ padding-top: 10px;
220
+ font-weight: bold;
221
+ line-height: 20px;
222
+
223
+ }
224
+
225
+ .xyz_feedback a{
226
+ text-decoration: none
227
+ }
228
+
229
+ .xyz_subscribe{
230
+ background: #bae598; /* Old browsers */
231
+ border: 1px solid #4d8a1d;
232
+ border-radius:3px;
233
+ width: 98%;
234
+ line-height:20px;
235
+ min-height:45px;
236
+ height:auto;
237
+ padding-left: 10px;
238
+ padding-top: 10px;
239
+
240
+ }
241
+ .xyz_subscribe td{
242
+ padding:0;
243
+ }
244
+
245
+ .xyz_plugins{
246
+ background: #F2F2F2; /* Old browsers */
247
+ border: 1px solid #DFDFDF;
248
+ border-radius:3px;
249
+ width: 98%;
250
+ padding-left: 10px;
251
+ padding-top:10px;
252
+ min-height:50px;
253
+ height:auto;
254
+ margin-top:13px;
255
+ line-height: 20px;
256
+
257
+ }
258
+ .xyz_fbap_poweredBy{
259
+ padding-top: 10px;float:left; text-align: center; width: 100%;
260
+ }
261
+
262
+ .xyz_fbap_poweredBy a{
263
+ text-decoration: none;
264
+ }
265
+
266
+ .submit_fbap{
267
+ background:#25A6E1;
268
+ background:-moz-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
269
+ background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#25A6E1),color-stop(100%,#188BC0));
270
+ background:-webkit-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
271
+ background:-o-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
272
+ background:-ms-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
273
+ background:linear-gradient(top,#25A6E1 0%,#188BC0 100%);
274
+ filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#25A6E1",endColorstr="#188BC0",GradientType=0);
275
+ color:#ffffff;
276
+ font-family:"Helvetica Neue",sans-serif;
277
+ font-size:13px;
278
+ cursor:pointer;
279
+ color:#FFFFFF !important;border-radius:4px !important;
280
+ border:1px solid #1A87B9;height: 30px;
281
+ padding-left: 15px;
282
+ padding-right: 15px;
283
+ }
284
+ #xyz-wp-fbap-premium {
285
+ border: 1px solid #FCC328;
286
+ margin-bottom: 20px;
287
+ margin-top: 20px;
288
+ background-color: #FFF6D6;
289
+ padding: 3px;
290
+ width: 98%;
291
+ border-radius:3px;
292
+ float: left;
293
+ }
294
+ a.xyz_fbap_link:hover{text-decoration:underline;}
295
+ .xyz_fbap_link{text-decoration:none;font-weight: bold;margin-left:8px;}
296
+
297
+ .xyz_fbap_widefat_table input[type="text"], .xyz_fbap_widefat_table input[type="password"], .xyz_fbap_widefat_table input[type="email"], .xyz_fbap_widefat_table input[type="number"], .xyz_fbap_widefat_table input[type="search"], .xyz_fbap_widefat_table input[type="tel"], .xyz_fbap_widefat_table input[type="url"], .xyz_fbap_widefat_table select {
298
+ width: 200px;padding: 5px !important;height: 2.35em !important;
299
+ }
300
+ .xyz_fbap_widefat_table textarea
301
+ {
302
+ width: 200px;padding: 5px !important;height: 80px !important;
303
+ }
304
+
305
+ .xyz_fbap_metalist_table{
306
+ width: 100%;
307
+ }
308
+
309
+ .xyz_fbap_pleft15{
310
+ padding-left: 15px;
311
+ }
312
+
313
+ .xyz_fbap_meta_acclist_table{
314
+ width: 100%;border: 1px solid #DFDFDF;border-radius:3px; margin-top: 8px;padding-bottom: 5px;
315
+ }
316
+ .xyz_fbap_meta_acclist_table_td{
317
+ background: linear-gradient(to top, #ECECEC, #F9F9F9) repeat scroll 0 0 #F1F1F1;border-bottom: 1px solid #DFDFDF;height: 25px;
318
+ }
319
+
320
+ .xyz_fbap_meta_acclist_table select ,.xyz_fbap_meta_acclist_table textarea{
321
+ width: 200px;padding: 5px !important;height: 2.35em !important;
322
+ }
323
+
324
+ a {
325
+ text-decoration: none;
326
+ }
327
+ /*new design start*/
328
+ .xyz_fbap_social_media {
329
+ background-color: #456a72;
330
+ width: 22%;
331
+ float: left;
332
+ min-height: 130px;
333
+ margin: 10px 10px 10px 0px;
334
+ padding: 10px;
335
+ border: 1px solid #456a72;
336
+ border-radius: 3px;
337
+ }
338
+ .xyz_fbap_sugession {
339
+ background-color: #571B35;
340
+ width: 20%;
341
+ float: left;
342
+ min-height: 130px;
343
+ margin: 10px 10px 10px 0px;
344
+ padding: 10px;
345
+ border: 1px solid #731C47;
346
+ border-radius: 3px;
347
+ font-size: 12px;
348
+ color: #ffffff;
349
+ }
350
+ .xyz_fbap_new_subscribe {
351
+ background-color: #c82e53;
352
+ width: 27%;
353
+ float: left;
354
+ min-height: 130px;
355
+ margin: 10px 10px 10px 0px;
356
+ padding: 10px;
357
+ border: 1px solid #BE2963;
358
+ border-radius: 3px;
359
+ }
360
+ .xyz_fbap_inmotion {
361
+
362
+ width: 21%;
363
+ float: left;
364
+ min-height: 130px;
365
+ margin: 0px 0px 0px 0px;
366
+ }
367
+ .xyz_fbap_sugession a {
368
+ color: #D7B740;
369
+ text-decoration: underline;
370
+ }
371
+
372
+ .xyz_fbap_sugession a:hover{color:#fafa66; text-decoration:underline;}
373
+ .xyz_fbap_sugession p{
374
+ display: block;
375
+ float: left;
376
+ line-height: 20px;
377
+ width: 100%;
378
+ margin: 0px; width:50%;}
379
+
380
+ .xyz_new_star{background-image: url(../images/new_star.png);
381
+ width: 80px;
382
+ height: 20px;
383
+ display: block;
384
+ background-repeat: no-repeat;
385
+ float: left;
386
+ }
387
+
388
+ .sbmt_btn{ border: none;
389
+ color: #ffffff;
390
+ background-color: #4e0013;
391
+ padding: 5px 10px;
392
+ border-radius: 3px;
393
+ cursor: pointer;}
394
+
395
+ .xyz_fbap_inmotion a:hover{color:#94dbff; text-decoration:underline;}
396
+
397
+ .xyz_fbap_inmotion_label{
398
+ height: 169px !important;
399
+ display: block;
400
+ margin: auto;
401
+ width:auto !important;}
402
+
403
+ .xyz_fbap_new_subscribe input{font-size:11px;margin: 5px;}
404
+
405
+ .xyz_fbap_social_media a{
406
+ margin: 0px 13px 5px 0px;
407
+ border: 1px solid #ddd;
408
+ width: 30px;
409
+ height: 30px;
410
+ padding-left: 0px;
411
+ display: block;
412
+ float: left;}
413
+
414
+ .xyz_fbap_inner_head{ color: #ffffff;
415
+ font-weight: 300;
416
+ border-bottom: 1px solid #eee;
417
+ margin: 0px 0px 10px;
418
+ padding-bottom: 10px;}
419
+
420
+ .xyz_fbap_plugin_head{margin: 0px;
421
+ font-size: 22px;
422
+ font-weight: 300;
423
+ padding: 0px 10px 5px;}
424
+
425
+ .xyz_fbap_name{border:none !important; width:46% !important;}
426
+ .xyz_fbap_email{border:none !important; width:46% !important;}
427
+
428
+ .xyz_fbap_our_plugins_new a{
429
+ text-decoration: none;
430
+ display: block;
431
+ background-color: #ddd;
432
+ float: left;
433
+ width: 23%;
434
+ margin: 1px;
435
+ padding: 0px 10px 0px 0px;
436
+ color: #094969;
437
+ outline: 0 !important;
438
+ line-height: 27px;
439
+ }
440
+ .xyz_fbap_our_plugins_new a:hover{text-decoration:underline;}
441
+
442
+ .xyz_fbap_our_plugins_new a:active{box-shadow:none !important;}
443
+
444
+ .xyz_fbap_our_plugins_new a span{
445
+ background-color: #00a0d2;
446
+ color: #FFFFFF;
447
+ width: 30px;
448
+ min-height: 28px;
449
+ display: block;
450
+ float: left;
451
+ text-align: center;
452
+ margin-right: 10px;
453
+ border-right: 2px solid #fff;}
454
+
455
+ .xyz_rate_btn{color: #E77E22 !important;
456
+ text-decoration: none !important;
457
+ margin-right: 4px !important;
458
+ font-weight: bold;
459
+ background-color: #fff1d6 !important;
460
+ border: 1px solid #E77E22 !important;
461
+ box-shadow:none !important;}
462
+
463
+ .xyz_backlink_btn{color: #00a016 !important;
464
+ text-decoration: none !important;
465
+ margin-right: 4px !important;
466
+ font-weight: bold;
467
+ background-color: #f0fff2 !important;
468
+ border: 1px solid #00a016 !important;
469
+ box-shadow:none !important;}
470
+
471
+ .xyz_share_btn{color: #177ABD !important;
472
+ text-decoration: none !important;
473
+ margin-right: 4px !important;
474
+ font-weight: bold;
475
+ border: 1px solid #177ABD !important;
476
+ background-color: #edf8ff !important;
477
+ box-shadow:none !important;}
478
+
479
+ .xyz_donate_btn{color: #C12AA2 !important;
480
+ text-decoration: none !important;
481
+ margin-right: 4px !important;
482
+ font-weight: bold;
483
+ border: 1px solid #C12AA2 !important;
484
+ background-color: #feeafa !important;
485
+ box-shadow:none !important;}
486
+
487
+ .xyz_show_btn{color: #F15E77 !important;
488
+ text-decoration: none !important;
489
+ margin-right: 4px !important;
490
+ font-weight: bold;
491
+ border: 1px solid #F15E77 !important;
492
+ background-color: #ffeddf !important;
493
+ box-shadow: none !important;}
494
+
495
+ @media screen and (max-width: 1351px) {
496
+
497
+ .xyz_fbap_social_media{width:21%;}
498
+
499
+ .xyz_fbap_new_subscribe{width:24%;}
500
+
501
+ .xyz_fbap_inmotion{width:21%;}
502
+
503
+ .xyz_fbap_sugession{width:20%;}
504
+
505
+ .xyz_fbap_name{border:none !important; width:45% !important;}
506
+
507
+ .xyz_fbap_email{border:none !important; width:45% !important;}
508
+
509
+ .xyz_fbap_our_plugins_new a{width:23%;}
510
+
511
+ }
512
+
513
+ @media screen and (max-width: 1251px) {
514
+
515
+ .xyz_fbap_social_media{width:21%;}
516
+
517
+ .xyz_fbap_new_subscribe{width:24%;}
518
+
519
+ .xyz_fbap_inmotion{width:21%;}
520
+
521
+ .xyz_fbap_sugession{width:22%;}
522
+
523
+ .xyz_fbap_name{border:none !important; width:45% !important;}
524
+
525
+ .xyz_fbap_email{border:none !important; width:45% !important;}
526
+
527
+ #xyz_fbap_submit_fbap{line-height:20px;}
528
+
529
+
530
+ .xyz_fbap_our_plugins_new a{width:23.6%;}
531
+ }
532
+
533
+ @media screen and (max-width:1155px)
534
+ {
535
+ .xyz_fbap_social_media{width:45%;}
536
+ .xyz_fbap_new_subscribe{width:45%;}
537
+ .xyz_fbap_inmotion{width:45%;}
538
+ .xyz_fbap_sugession{width:45%;}
539
+ .xyz_fbap_our_plugins_new a{width:31%;}
540
+ }
541
+
542
+
543
+ @media screen and (max-width: 782px)
544
+ {
545
+ .xyz_fbap_social_media{width:44%;}
546
+
547
+ .xyz_fbap_new_subscribe{width:44%;}
548
+
549
+ .xyz_fbap_inmotion{width:44%;}
550
+
551
+ .xyz_fbap_sugession{width:44%;}
552
+
553
+ .xyz_fbap_our_plugins_new a{width:30%;}
554
+
555
+ .xyz_fbap_name{border:none !important; width:46% !important;}
556
+
557
+ .xyz_fbap_email{border:none !important; width:46% !important;}
558
+ }
559
+
560
+
561
+ @media screen and (max-width: 768px)
562
+ {
563
+ #xyz_fbap_submit_fbap{line-height:20px;}
564
+ .xyz_fbap_our_plugins_new a{width:30%; font-size:11px !important;}
565
+ }
566
+
567
+
568
+ @media screen and (max-width: 675px)
569
+ {
570
+ .xyz_fbap_our_plugins_new a{width:45%; font-size:11px !important;}
571
+ .xyz_fbap_name{border:none !important; width:95% !important;}
572
+ .xyz_fbap_email {
573
+ border: none !important;
574
+ width: 95% !important;
575
+ }
576
+ .xyz_fbap_inmotion_label {
577
+ height: 185px;
578
+ display: block;
579
+ margin: auto;
580
+ }
581
+ }
582
+
583
+
584
+ @media screen and (max-width: 562px)
585
+ {
586
+ .xyz_fbap_sugession{width:92.5%;}
587
+
588
+
589
+ .xyz_fbap_new_subscribe{width:92.5%;}
590
+
591
+
592
+ .xyz_fbap_social_media{width:92.5%;}
593
+ .xyz_fbap_inmotion{width:92.5%;}
594
+ .xyz_fbap_email {
595
+ border: none !important;
596
+ width: 95% !important;
597
+ }
598
+ }
599
+
600
+
601
+ @media screen and (max-width: 532px){
602
+
603
+
604
+ .xyz_fbap_social_media{width:92.5%;}
605
+
606
+ .xyz_fbap_new_subscribe{width:92.5%;}
607
+
608
+ .xyz_fbap_inmotion{width:92.5%;}
609
+
610
+ .xyz_fbap_sugession{width:92.5%;}
611
+
612
+ .xyz_fbap_our_plugins_new a{width:92.5%;}
613
+
614
+ .xyz_fbap_name{border:none !important; width:95% !important;}
615
+
616
+ .xyz_fbap_email{border:none !important; width:95% !important;}
617
+ }
618
+
619
+
620
+ /*new design end*/
621
+ .switch-field input[type=radio] {
622
+ position: absolute !important;
623
+ clip: rect(0, 0, 0, 0);
624
+ height: 1px;
625
+ width: 1px;
626
+ border: 0;
627
+ overflow: hidden;
628
+ }
629
+
630
+ .switch-field label {
631
+ float: left;
632
+ }
633
+
634
+ .switch-field label {
635
+ display: inline-block;
636
+ color: rgba(0, 0, 0, 0.6);
637
+ width: 50px;
638
+ font-weight: normal;
639
+ text-align: center;
640
+ text-shadow: none;
641
+ padding: 6px 14px;
642
+ -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
643
+ box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
644
+ -webkit-transition: all 0.1s ease-in-out;
645
+ -moz-transition: all 0.1s ease-in-out;
646
+ -ms-transition: all 0.1s ease-in-out;
647
+ -o-transition: all 0.1s ease-in-out;
648
+ transition: all 0.1s ease-in-out;
649
+ }
650
+ .switch-field label:hover {
651
+ cursor: pointer;
652
+ }
653
+ .switch-field label:first-of-type {
654
+ border-radius: 4px 0 0 4px;min-width: 50px;width:auto;
655
+ }
656
+ .switch-field label:last-of-type {
657
+ border-radius: 0 4px 4px 0;min-width: 50px;width:auto;
658
+ }
659
+ .scroll_checkbox
660
+ {
661
+ border: 2px solid #ccc;
662
+ width: 200px;
663
+ height: 150px;
664
+ overflow-y: scroll;
665
+ overflow-x: visible;
666
+ }
667
+ .toplevel_page_facebook-auto-publish-settings img{
668
+ width:20px;
669
+ height:auto;
670
+ }
671
+ .xyz_fbap_toggle_off
672
+ {
673
+ background-color:#dddddd !important;
674
+ color:#888888 !important;
675
+ font-weight:normal !important;
676
+ }
677
+ .xyz_fbap_toggle_on
678
+ {
679
+ background-color:#006CBF !important;
680
+ color:#ffffff !important;
681
+ font-weight:bold !important;
682
+ }
683
+ .xyz-fbap-buy-now{
684
+ float: left;
685
+ margin-top: 3px;
686
+ }
687
+ .xyz-fbap-buy-now img{
688
+ width:148px !important;
689
+ height:38px !important;
690
+ }
691
+ .xyz-fbap-buy-button {
692
+ display:block;
693
+ color:white;
694
+ padding:5px 21px;
695
+ background: #545454;
696
+ border: 0;
697
+ border-bottom: 2px solid #545454;
698
+ cursor: pointer;
699
+ -webkit-box-shadow: inset 0 -2px #545454;
700
+ box-shadow: inset 0 -2px #545454;
701
+ text-decoration: none;
702
+ font-size: 14px;
703
+ font-weight: bold;
704
+ border-radius:3px;
705
+ text-align: center;
706
+ }
707
+ .xyz_fbap_td_custom a {
708
+ font-size:13px;
709
+ }
710
+ /* Style the tab */
711
+ .xyz_fbap_tab {
712
+ overflow: hidden;
713
+ background-color: #f1f1f1;
714
+ }
715
+
716
+ /* Style the buttons inside the tab */
717
+ .xyz_fbap_tab button {
718
+ float: left;
719
+ border: none;
720
+ outline: none;
721
+ cursor: pointer;
722
+ padding: 14px 16px;
723
+ transition: 0.3s;
724
+ font-size: 17px;
725
+ background-color: #cecece;
726
+ color: #006CBF;
727
+ margin-right: 2px;
728
+ border-radius: 8px 8px 0px 0px;
729
+ border-top: 1px solid #b9aeae;
730
+ border-right: 1px solid #b9aeae;
731
+ border-left: 1px solid #b9aeae;
732
+ border-bottom: 1px solid #fff;
733
+ font-weight: 600;
734
+ }
735
+
736
+ /* Change background color of buttons on hover */
737
+ .xyz_fbap_tab button:hover {
738
+ background-color: #cecece;
739
+ }
740
+
741
+ /* Create an active/current tablink class */
742
+ .xyz_fbap_tab button.active {
743
+ background-color: #ffffff;
744
+ color: #006CBF;
745
+ }
746
+
747
+
748
+ /* Style the tab content */
749
+ .xyz_fbap_tabcontent {
750
+ display: none;
751
+ padding: 6px 12px;
752
+ border: 1px solid #ccc;
753
+ margin-top: -2px;
754
+ }
755
+
756
+
757
  .xyz_fbap_widefat_table h2{color: #006CBF;}
facebook-auto-publish.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP2Social Auto Publish
4
  Plugin URI: https://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: 2.3
7
  Author: xyzscripts.com
8
  Author URI: https://xyzscripts.com/
9
  License: GPLv2 or later
@@ -61,7 +61,7 @@ if(get_option('xyz_credit_link')=="fbap"){
61
 
62
  }
63
  function xyz_fbap_credit() {
64
- $content = '<div style="clear:both;width:100%;text-align:center; font-size:11px; "><a target="_blank" title="WP2Social Auto Publish" href="https://xyzscripts.com/wordpress-plugins/facebook-auto-publish/details" >WP2Social Auto Publish</a> Powered By : <a target="_blank" title="PHP Scripts & Programs" href="http://www.xyzscripts.com" >XYZScripts.com</a></div>';
65
  echo $content;
66
  }
67
  if(!function_exists('get_post_thumbnail_id'))
3
  Plugin Name: WP2Social Auto Publish
4
  Plugin URI: https://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: 2.3.1
7
  Author: xyzscripts.com
8
  Author URI: https://xyzscripts.com/
9
  License: GPLv2 or later
61
 
62
  }
63
  function xyz_fbap_credit() {
64
+ $content = '<div style="clear:both;width:100%;text-align:center; font-size:11px; "><a target="_blank" title="WP2Social Auto Publish" href="https://xyzscripts.com/wordpress-plugins/facebook-auto-publish/compare" >WP2Social Auto Publish</a> Powered By : <a target="_blank" title="PHP Scripts & Programs" href="http://www.xyzscripts.com" >XYZScripts.com</a></div>';
65
  echo $content;
66
  }
67
  if(!function_exists('get_post_thumbnail_id'))
readme.txt CHANGED
@@ -1,287 +1,290 @@
1
- === WP2Social Auto Publish ===
2
- Contributors: f1logic
3
- Donate link: https://xyzscripts.com/donate/
4
- Tags: facebook, facebook auto publish,wp2fb auto publish,wp2social,wp2social auto publish,wp 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: 5.2.4
7
- Stable tag: 2.3
8
- License: GPLv2 or later
9
-
10
- Publish posts automatically to Facebook page.
11
-
12
- == Description ==
13
-
14
- A quick look into WP2Social 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
- = WP2Social Auto Publish Features in Detail =
25
-
26
- The WP2Social 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 WP2Social 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 specific pages on Facebook
39
-
40
- = Filter Settings =
41
-
42
- The plugin offers multiple kinds of filters for contents to be published automatically.
43
-
44
- Enable or disable publishing of wordpress pages
45
- Filter posts to be published based on categories
46
- Filtering based on custom post types
47
-
48
- = Message Format Settings =
49
-
50
- The supported post elements which can be published are given below.
51
-
52
- Post title
53
- Post description
54
- Post excerpt
55
- Permalink
56
- Blog title
57
- User nicename
58
- Post ID
59
- Post publish date
60
- User display name
61
-
62
-
63
- = About =
64
-
65
- WP2Social Auto Publish is developed and maintained by [XYZScripts](https://xyzscripts.com/ "xyzscripts.com"). For any support, you may [contact us](https://xyzscripts.com/support/ "XYZScripts Support").
66
-
67
- ★ [WP2Social Auto Publish User Guide](http://help.xyzscripts.com/docs/facebook-auto-publish/user-guide/ "WP2Social Auto Publish User Guide")
68
- ★ [WP2Social Auto Publish FAQ](http://help.xyzscripts.com/docs/facebook-auto-publish/faq/ "WP2Social Auto Publish FAQ")
69
-
70
- == Installation ==
71
-
72
- ★ [WP2Social Auto Publish User Guide](http://help.xyzscripts.com/docs/facebook-auto-publish/user-guide/ "WP2Social Auto Publish User Guide")
73
- ★ [WP2Social Auto Publish FAQ](http://help.xyzscripts.com/docs/facebook-auto-publish/faq/ "WP2Social 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 WP2Social Auto Publish.
77
- 3. You can configure the settings from WP2Social 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](https://xyzscripts.com/support/ "XYZScripts Support").
81
-
82
- == Frequently Asked Questions ==
83
-
84
- ★ [WP2Social Auto Publish User Guide](http://help.xyzscripts.com/docs/facebook-auto-publish/user-guide/ "WP2Social Auto Publish User Guide")
85
- ★ [WP2Social Auto Publish FAQ](http://help.xyzscripts.com/docs/facebook-auto-publish/faq/ "WP2Social Auto Publish FAQ")
86
-
87
- = 1. The WP2Social 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 `wp2social 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](https://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. This is the general settings section.
126
- 3. Publishing options while creating a post.
127
- 4. Auto publish logs.
128
-
129
- == Changelog ==
130
-
131
- = WP2Social Auto Publish 2.3 =
132
- * Support for free trial of SMAPSOLUTION's api
133
- * Added option to upgrade SMAPSOLUTION's subscription package
134
- * Option to enable enforcing og meta tags in auto publish
135
- * Option to remove inactive facebook authorizations
136
-
137
- = WP2Social Auto Publish 2.2.1 =
138
- * Plugin name changed to WP2Social Auto Publish
139
-
140
- = WP2FB Auto Publish 2.2 =
141
- * Plugin name changed to WP2FB Auto Publish, as per Facebook guidelines
142
- * Fixed bug in specific category selection on edit posts
143
- * Option to reuse last used auto publish settings on edit posts
144
-
145
- = WP Facebook Auto Publish 2.1 =
146
- * Added page for managing authorizations of smapsolutions app
147
- * Compatibility with gutenberg editor
148
- * Option to view social media posts from auto publish logs
149
- * Settings menu reorganized
150
- * Compatibility with PHP 7.2
151
-
152
- = WP Facebook Auto Publish 2.0.1 =
153
- * Fix for settings page auto refresh
154
-
155
- = WP Facebook Auto Publish 2.0 =
156
- * Removed unwanted facebook permissions
157
- * Added Facebook authorization and publishing using SMAPSolutions.com
158
- * Increased logs count from 5 to 10
159
-
160
- = WP Facebook Auto Publish 1.4.9 =
161
- * Removed Facebook deprecated permission 'publish_actions'
162
- * Applied wordpress time format in {POST_PUBLISH_DATE}
163
-
164
- = WP Facebook Auto Publish 1.4.8 =
165
- * Plugin name changed to WP Facebook Auto Publish, as per wordpress guidelines
166
-
167
- = Facebook Auto Publish 1.4.7 =
168
- * Fixed facebook authorisation issue
169
- * Minor bug fixes
170
- * UI updated
171
-
172
- = Facebook Auto Publish 1.4.6 =
173
- * Added USER_DISPLAY_NAME in message formats
174
- * Minor security issues fixed
175
-
176
- = Facebook Auto Publish 1.4.5 =
177
- * Compatibility with facebook API V 2.11 added
178
- * Minor bug fixes
179
-
180
- = Facebook Auto Publish 1.4.4 =
181
- * Removed Caption from {POST_CONTENT}
182
- * Fixed Facebook image selection issue for 'Share a link to your blog post' and 'Attach your blog post'
183
- * Fixed ssl peer verification in wp_remote_get/wp_remote_post calls
184
-
185
- = Facebook Auto Publish 1.4.3 =
186
- * Added POST_ID and POST_PUBLISH_DATE in message formats
187
-
188
- = Facebook Auto Publish 1.4.2 =
189
- * Fixed facebook boost unavailable issue
190
- * Nonce added
191
- * Prevented direct access to plugin files
192
- * Data validation updated
193
- * App album related issue fixed
194
-
195
- = Facebook Auto Publish 1.4.1 =
196
- * utf-8 decoding issue fixed
197
- * Visual composer compatiblity issue fixed
198
- * Minor bugs fixed
199
-
200
- = Facebook Auto Publish 1.4 =
201
- * Facebook api updated(requires PHP version 5.4 or higher)
202
-
203
- = Facebook Auto Publish 1.3.1 =
204
- * Fixed custom post types autopublish issue
205
- * Fixed duplicate autopublish issue
206
-
207
- = Facebook Auto Publish 1.3 =
208
- * Added option to enable/disable utf-8 decoding before publishing
209
- * Removed unwanted configuration related to 'future_to_publish' hook
210
- * Removed unwanted setting "Facebook user id"
211
- * Postid added in autopublish logs
212
- * Updated auto publish mechanism using transition_post_status hook
213
- * Open graph meta tags will be prefered for facebook attachments
214
-
215
- = Facebook Auto Publish 1.2.4 =
216
- * Added option to enable/disable "future_to_publish" hook for handling auto publish of scheduled posts
217
- * Added options to enable/disable "the_content", "the_excerpt", "the_title" filters on content to be auto-published
218
- * Resolved issue in fetching facebook pages in settings page (in case of more than 100 pages)
219
- * Inline edit of posts will work according to the value set for "Default selection of auto publish while editing posts/pages"
220
- * Latest five auto publish logs are maintained
221
-
222
- = Facebook Auto Publish 1.2.3 =
223
- * Fixed category display issue
224
- * Removed outdated facebook scopes from authorization
225
-
226
- = Facebook Auto Publish 1.2.2 =
227
- * Bug fix for duplicate publishing of scheduled posts
228
-
229
- = Facebook Auto Publish 1.2.1 =
230
- * Fixed auto publish related bug in post edit
231
- * Fixed message format bug in auto publish
232
- * Updated Facebook authorization
233
-
234
- = Facebook Auto Publish 1.2 =
235
- * Option to configure auto publish settings while editing posts/pages
236
- * General setting to enable/disable post publishing
237
- * Added auto publish for scheduled post
238
- * Fixed issue related to \" in auto publish
239
-
240
- = Facebook Auto Publish 1.1.2 =
241
- * Fixed auto-publish of scheduled post
242
-
243
- = Facebook Auto Publish 1.1.1 =
244
- * Added compatibility with wordpress 3.9.1
245
- * Facebook API V 2.0 compatibility added
246
- * Compatibility with bitly plugin
247
-
248
- = Facebook Auto Publish 1.1 =
249
- * View logs for last published post
250
- * Option to enable/disable SSL peer verification
251
- * Option to reauthorize the application
252
-
253
- = Facebook Auto Publish 1.0.2 =
254
- * Bug fixed for &amp;nbsp; in post
255
-
256
- = Facebook Auto Publish 1.0.1 =
257
- * Default image fetch logic for auto publish updated.
258
- * Thumbnail image logic updated.
259
-
260
- = Facebook Auto Publish 1.0 =
261
- * First official launch.
262
-
263
- == Upgrade Notice ==
264
-
265
- = Facebook Auto Publish 1.0.1 =
266
- If you had issues with default image used for auto publishing, you may apply this upgrade.
267
-
268
- = Facebook Auto Publish 1.0 =
269
- First official launch.
270
-
271
- == More Information ==
272
-
273
- ★ [WP2Social Auto Publish User Guide](http://help.xyzscripts.com/docs/facebook-auto-publish/ "WP2Social Auto Publish User Guide")
274
- [WP2Social Auto Publish FAQ](http://help.xyzscripts.com/docs/facebook-auto-publish/faq/ "WP2Social Auto Publish FAQ")
275
-
276
- = Troubleshooting =
277
-
278
- Please read the FAQ first if you are having problems.
279
-
280
- = Requirements =
281
-
282
- WordPress 3.0+
283
- PHP 5.4+
284
-
285
- = Feedback =
286
-
287
- We would like to receive your feedback and suggestions about WP2Social Auto Publish plugin. You may submit them at our [support desk](https://xyzscripts.com/support/ "XYZScripts Support").
 
 
 
1
+ === WP2Social Auto Publish ===
2
+ Contributors: f1logic
3
+ Donate link: https://xyzscripts.com/donate/
4
+ Tags: facebook, facebook auto publish,wp2fb auto publish,wp2social,wp2social auto publish,wp 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: 5.3.2
7
+ Stable tag: 2.3.1
8
+ License: GPLv2 or later
9
+
10
+ Publish posts automatically to Facebook page.
11
+
12
+ == Description ==
13
+
14
+ A quick look into WP2Social 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
+ = WP2Social Auto Publish Features in Detail =
25
+
26
+ The WP2Social 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 WP2Social 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 specific pages on Facebook
39
+
40
+ = Filter Settings =
41
+
42
+ The plugin offers multiple kinds of filters for contents to be published automatically.
43
+
44
+ Enable or disable publishing of wordpress pages
45
+ Filter posts to be published based on categories
46
+ Filtering based on custom post types
47
+
48
+ = Message Format Settings =
49
+
50
+ The supported post elements which can be published are given below.
51
+
52
+ Post title
53
+ Post description
54
+ Post excerpt
55
+ Permalink
56
+ Blog title
57
+ User nicename
58
+ Post ID
59
+ Post publish date
60
+ User display name
61
+
62
+
63
+ = About =
64
+
65
+ WP2Social Auto Publish is developed and maintained by [XYZScripts](https://xyzscripts.com/ "xyzscripts.com"). For any support, you may [contact us](https://xyzscripts.com/support/ "XYZScripts Support").
66
+
67
+ ★ [WP2Social Auto Publish User Guide](http://help.xyzscripts.com/docs/facebook-auto-publish/user-guide/ "WP2Social Auto Publish User Guide")
68
+ ★ [WP2Social Auto Publish FAQ](http://help.xyzscripts.com/docs/facebook-auto-publish/faq/ "WP2Social Auto Publish FAQ")
69
+
70
+ == Installation ==
71
+
72
+ ★ [WP2Social Auto Publish User Guide](http://help.xyzscripts.com/docs/facebook-auto-publish/user-guide/ "WP2Social Auto Publish User Guide")
73
+ ★ [WP2Social Auto Publish FAQ](http://help.xyzscripts.com/docs/facebook-auto-publish/faq/ "WP2Social 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 WP2Social Auto Publish.
77
+ 3. You can configure the settings from WP2Social 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](https://xyzscripts.com/support/ "XYZScripts Support").
81
+
82
+ == Frequently Asked Questions ==
83
+
84
+ ★ [WP2Social Auto Publish User Guide](http://help.xyzscripts.com/docs/facebook-auto-publish/user-guide/ "WP2Social Auto Publish User Guide")
85
+ ★ [WP2Social Auto Publish FAQ](http://help.xyzscripts.com/docs/facebook-auto-publish/faq/ "WP2Social Auto Publish FAQ")
86
+
87
+ = 1. The WP2Social 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 `wp2social 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](https://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. This is the general settings section.
126
+ 3. Publishing options while creating a post.
127
+ 4. Auto publish logs.
128
+
129
+ == Changelog ==
130
+
131
+ = WP2Social Auto Publish 2.3.1 =
132
+ * Added option to clear facebook cache
133
+
134
+ = WP2Social Auto Publish 2.3 =
135
+ * Support for free trial of SMAPSOLUTION's api
136
+ * Added option to upgrade SMAPSOLUTION's subscription package
137
+ * Option to enable enforcing og meta tags in auto publish
138
+ * Option to remove inactive facebook authorizations
139
+
140
+ = WP2Social Auto Publish 2.2.1 =
141
+ * Plugin name changed to WP2Social Auto Publish
142
+
143
+ = WP2FB Auto Publish 2.2 =
144
+ * Plugin name changed to WP2FB Auto Publish, as per Facebook guidelines
145
+ * Fixed bug in specific category selection on edit posts
146
+ * Option to reuse last used auto publish settings on edit posts
147
+
148
+ = WP Facebook Auto Publish 2.1 =
149
+ * Added page for managing authorizations of smapsolutions app
150
+ * Compatibility with gutenberg editor
151
+ * Option to view social media posts from auto publish logs
152
+ * Settings menu reorganized
153
+ * Compatibility with PHP 7.2
154
+
155
+ = WP Facebook Auto Publish 2.0.1 =
156
+ * Fix for settings page auto refresh
157
+
158
+ = WP Facebook Auto Publish 2.0 =
159
+ * Removed unwanted facebook permissions
160
+ * Added Facebook authorization and publishing using SMAPSolutions.com
161
+ * Increased logs count from 5 to 10
162
+
163
+ = WP Facebook Auto Publish 1.4.9 =
164
+ * Removed Facebook deprecated permission 'publish_actions'
165
+ * Applied wordpress time format in {POST_PUBLISH_DATE}
166
+
167
+ = WP Facebook Auto Publish 1.4.8 =
168
+ * Plugin name changed to WP Facebook Auto Publish, as per wordpress guidelines
169
+
170
+ = Facebook Auto Publish 1.4.7 =
171
+ * Fixed facebook authorisation issue
172
+ * Minor bug fixes
173
+ * UI updated
174
+
175
+ = Facebook Auto Publish 1.4.6 =
176
+ * Added USER_DISPLAY_NAME in message formats
177
+ * Minor security issues fixed
178
+
179
+ = Facebook Auto Publish 1.4.5 =
180
+ * Compatibility with facebook API V 2.11 added
181
+ * Minor bug fixes
182
+
183
+ = Facebook Auto Publish 1.4.4 =
184
+ * Removed Caption from {POST_CONTENT}
185
+ * Fixed Facebook image selection issue for 'Share a link to your blog post' and 'Attach your blog post'
186
+ * Fixed ssl peer verification in wp_remote_get/wp_remote_post calls
187
+
188
+ = Facebook Auto Publish 1.4.3 =
189
+ * Added POST_ID and POST_PUBLISH_DATE in message formats
190
+
191
+ = Facebook Auto Publish 1.4.2 =
192
+ * Fixed facebook boost unavailable issue
193
+ * Nonce added
194
+ * Prevented direct access to plugin files
195
+ * Data validation updated
196
+ * App album related issue fixed
197
+
198
+ = Facebook Auto Publish 1.4.1 =
199
+ * utf-8 decoding issue fixed
200
+ * Visual composer compatiblity issue fixed
201
+ * Minor bugs fixed
202
+
203
+ = Facebook Auto Publish 1.4 =
204
+ * Facebook api updated(requires PHP version 5.4 or higher)
205
+
206
+ = Facebook Auto Publish 1.3.1 =
207
+ * Fixed custom post types autopublish issue
208
+ * Fixed duplicate autopublish issue
209
+
210
+ = Facebook Auto Publish 1.3 =
211
+ * Added option to enable/disable utf-8 decoding before publishing
212
+ * Removed unwanted configuration related to 'future_to_publish' hook
213
+ * Removed unwanted setting "Facebook user id"
214
+ * Postid added in autopublish logs
215
+ * Updated auto publish mechanism using transition_post_status hook
216
+ * Open graph meta tags will be prefered for facebook attachments
217
+
218
+ = Facebook Auto Publish 1.2.4 =
219
+ * Added option to enable/disable "future_to_publish" hook for handling auto publish of scheduled posts
220
+ * Added options to enable/disable "the_content", "the_excerpt", "the_title" filters on content to be auto-published
221
+ * Resolved issue in fetching facebook pages in settings page (in case of more than 100 pages)
222
+ * Inline edit of posts will work according to the value set for "Default selection of auto publish while editing posts/pages"
223
+ * Latest five auto publish logs are maintained
224
+
225
+ = Facebook Auto Publish 1.2.3 =
226
+ * Fixed category display issue
227
+ * Removed outdated facebook scopes from authorization
228
+
229
+ = Facebook Auto Publish 1.2.2 =
230
+ * Bug fix for duplicate publishing of scheduled posts
231
+
232
+ = Facebook Auto Publish 1.2.1 =
233
+ * Fixed auto publish related bug in post edit
234
+ * Fixed message format bug in auto publish
235
+ * Updated Facebook authorization
236
+
237
+ = Facebook Auto Publish 1.2 =
238
+ * Option to configure auto publish settings while editing posts/pages
239
+ * General setting to enable/disable post publishing
240
+ * Added auto publish for scheduled post
241
+ * Fixed issue related to \" in auto publish
242
+
243
+ = Facebook Auto Publish 1.1.2 =
244
+ * Fixed auto-publish of scheduled post
245
+
246
+ = Facebook Auto Publish 1.1.1 =
247
+ * Added compatibility with wordpress 3.9.1
248
+ * Facebook API V 2.0 compatibility added
249
+ * Compatibility with bitly plugin
250
+
251
+ = Facebook Auto Publish 1.1 =
252
+ * View logs for last published post
253
+ * Option to enable/disable SSL peer verification
254
+ * Option to reauthorize the application
255
+
256
+ = Facebook Auto Publish 1.0.2 =
257
+ * Bug fixed for &amp;nbsp; in post
258
+
259
+ = Facebook Auto Publish 1.0.1 =
260
+ * Default image fetch logic for auto publish updated.
261
+ * Thumbnail image logic updated.
262
+
263
+ = Facebook Auto Publish 1.0 =
264
+ * First official launch.
265
+
266
+ == Upgrade Notice ==
267
+
268
+ = Facebook Auto Publish 1.0.1 =
269
+ If you had issues with default image used for auto publishing, you may apply this upgrade.
270
+
271
+ = Facebook Auto Publish 1.0 =
272
+ First official launch.
273
+
274
+ == More Information ==
275
+
276
+ [WP2Social Auto Publish User Guide](http://help.xyzscripts.com/docs/facebook-auto-publish/ "WP2Social Auto Publish User Guide")
277
+ ★ [WP2Social Auto Publish FAQ](http://help.xyzscripts.com/docs/facebook-auto-publish/faq/ "WP2Social Auto Publish FAQ")
278
+
279
+ = Troubleshooting =
280
+
281
+ Please read the FAQ first if you are having problems.
282
+
283
+ = Requirements =
284
+
285
+ WordPress 3.0+
286
+ PHP 5.4+
287
+
288
+ = Feedback =
289
+
290
+ We would like to receive your feedback and suggestions about WP2Social Auto Publish plugin. You may submit them at our [support desk](https://xyzscripts.com/support/ "XYZScripts Support").
xyz-functions.php CHANGED
@@ -62,11 +62,10 @@ if(!function_exists('xyz_fbap_links')){
62
 
63
 
64
  if(!function_exists('xyz_fbap_string_limit')){
65
- function xyz_fbap_string_limit($string, $limit) {
66
-
67
  $space=" ";$appendstr=" ...";
68
-
69
- if (function_exists('mb_strlen')) {
70
  if(mb_strlen($string) <= $limit) return $string;
71
  if(mb_strlen($appendstr) >= $limit) return '';
72
  $string = mb_substr($string, 0, $limit-mb_strlen($appendstr));
@@ -239,8 +238,39 @@ if(!function_exists('xyz_fbap_post_to_smap_api'))
239
  curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER,(get_option('xyz_fbap_peer_verification')=='1') ? true : false);
240
  $content = curl_exec($ch);
241
  curl_close($ch);
 
 
 
 
 
 
242
  return $content;
243
  }
244
  }
245
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
246
  ?>
62
 
63
 
64
  if(!function_exists('xyz_fbap_string_limit')){
65
+ function xyz_fbap_string_limit($string, $limit)
66
+ {
67
  $space=" ";$appendstr=" ...";
68
+ if (function_exists('mb_strlen') && function_exists('mb_substr') && function_exists('mb_strripos')) {
 
69
  if(mb_strlen($string) <= $limit) return $string;
70
  if(mb_strlen($appendstr) >= $limit) return '';
71
  $string = mb_substr($string, 0, $limit-mb_strlen($appendstr));
238
  curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER,(get_option('xyz_fbap_peer_verification')=='1') ? true : false);
239
  $content = curl_exec($ch);
240
  curl_close($ch);
241
+ if (empty($content))
242
+ {
243
+ if ($url==XYZ_SMAP_SOLUTION_PUBLISH_URL.'api/facebook.php')
244
+ $response=array('status'=>0,'fb_api_count'=>0,'msg'=>'Error:unable to connect');
245
+ $content=json_encode($response);
246
+ }
247
  return $content;
248
  }
249
  }
250
  }
251
+ if (!function_exists("xyz_fbap_clear_open_graph_cache")) {
252
+ function xyz_fbap_clear_open_graph_cache($url,$access_tocken,$appid,$appsecret) {
253
+ $fb=new Facebook\Facebook(array(
254
+ 'app_id' => $appid,
255
+ 'app_secret' => $appsecret,
256
+ 'default_graph_version' => XYZ_FBAP_FB_API_VERSION,
257
+ 'cookie' => true
258
+ ));
259
+ try {
260
+ $params = array(
261
+ 'id' => $url,
262
+ 'scrape' => 'true',
263
+ 'access_token' => $access_tocken
264
+ );
265
+ $response = $fb->post('/', $params);
266
+ return $response;
267
+ } catch(\Facebook\Exceptions\FacebookResponseException $e) {
268
+ // When Graph returns an error
269
+ return 'Graph returned an error: ' . $e->getMessage();
270
+ } catch(\Facebook\Exceptions\FacebookSDKException $e) {
271
+ // When validation fails or other local issues
272
+ return 'Facebook SDK returned an error: ' . $e->getMessage();
273
+ }
274
+ }
275
+ }
276
  ?>