Open Graph for Facebook, Google+ and Twitter Card Tags - Version 2.1.6

Version Description

  • Added new "App ID" and "App Secret" settings on the "Facebook Open Graph Tags cache" panel, so that the plugin tries to clear the Facebook cache authenticated with you own App details
  • Bumped Tested up to and WC tested up to tags
  • Improved the FAQ
Download this release

Release Info

Developer webdados
Plugin Icon Open Graph for Facebook, Google+ and Twitter Card Tags
Version 2.1.6
Comparing to
See all releases

Code changes from version 2.1.5 to 2.1.6

admin/class-webdados-fb-open-graph-admin.php CHANGED
@@ -248,6 +248,13 @@ class Webdados_FB_Admin {
248
  $status = 0;
249
  $error = false;
250
  $fb_debug_url = apply_filters( 'fb_og_update_cache_url', 'https://graph.facebook.com/?id='.urlencode(get_permalink($post_id)).'&scrape=true&method=post' );
 
 
 
 
 
 
 
251
  $response = wp_remote_get($fb_debug_url);
252
  if ( is_wp_error($response) ) {
253
  $this->update_status = -1;
248
  $status = 0;
249
  $error = false;
250
  $fb_debug_url = apply_filters( 'fb_og_update_cache_url', 'https://graph.facebook.com/?id='.urlencode(get_permalink($post_id)).'&scrape=true&method=post' );
251
+ //Was the filter NOT used?
252
+ if ( !stristr( $fb_debug_url, 'access_token=' ) ) {
253
+ //Add the authentication from the settings
254
+ if ( trim($this->options['fb_adv_notify_fb_app_id'])!='' && trim($this->options['fb_adv_notify_fb_app_secret'])!='' ) {
255
+ $fb_debug_url .= '&access_token='.urlencode(trim($this->options['fb_adv_notify_fb_app_id'])).'|'.urlencode(trim($this->options['fb_adv_notify_fb_app_secret'])).'';
256
+ }
257
+ }
258
  $response = wp_remote_get($fb_debug_url);
259
  if ( is_wp_error($response) ) {
260
  $this->update_status = -1;
admin/options-page-facebook.php CHANGED
@@ -381,6 +381,29 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
381
  </td>
382
  </tr>
383
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
384
  <tr class="fb_adv_notify_fb_options">
385
  <th><?php _e( 'Suppress cache notices', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
386
  <td>
381
  </td>
382
  </tr>
383
 
384
+ <tr class="fb_adv_notify_fb_options">
385
+ <th><?php _e( 'App ID', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
386
+ <td>
387
+ <input type="text" name="wonderm00n_open_graph_settings[fb_adv_notify_fb_app_id]" id="fb_adv_notify_fb_app_id" size="20" value="<?php echo trim(esc_attr($options['fb_adv_notify_fb_app_id'])); ?>"/>
388
+ </td>
389
+ </tr>
390
+
391
+ <tr class="fb_adv_notify_fb_options">
392
+ <th><?php _e( 'App Secret', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
393
+ <td>
394
+ <input type="text" name="wonderm00n_open_graph_settings[fb_adv_notify_fb_app_secret]" id="fb_adv_notify_fb_app_secret" size="39" value="<?php echo trim(esc_attr($options['fb_adv_notify_fb_app_secret'])); ?>"/>
395
+ </td>
396
+ </tr>
397
+ <tr class="fb_adv_notify_fb_options">
398
+ <td colspan="2" class="info">
399
+ - <?php printf( __( 'Facebook no longer allows updating the cache anonymously, so you have to use a App ID and Secret to do it. <a href="%s" target="_blank">Read here</a> how to do it.', 'wonderm00ns-simple-facebook-open-graph-tags' ), esc_attr('https://www.webdados.pt/2017/12/successfully-update-facebook-cache-using-our-facebook-open-graph-plugin/'.$out_link_utm) ); ?>
400
+ <br/>
401
+ - <?php _e( 'If you are using the (now deprecated) <i>fb_og_update_cache_url</i> filter, this ID and Secret will NOT be used. You should stop using the filter and use these settings.', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
402
+ <br/>
403
+ - <?php _e( 'Please do not ask for support regarding this feature. Everything is explained in the blog post linked above.', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
404
+ </td>
405
+ </tr>
406
+
407
  <tr class="fb_adv_notify_fb_options">
408
  <th><?php _e( 'Suppress cache notices', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
409
  <td>
admin/options-page-right.php CHANGED
@@ -4,8 +4,6 @@
4
  * @version 2.1.2
5
  */
6
 
7
- $out_link_utm='?utm_source=fb_og_wp_plugin_settings&amp;utm_medium=link&amp;utm_campaign=fb_og_wp_plugin';
8
-
9
  $links = array(
10
  0 => array(
11
  'text' => __('Test your URLs on the Facebook Debugger', 'wonderm00ns-simple-facebook-open-graph-tags'),
@@ -85,7 +83,10 @@
85
  <input type="hidden" name="lc" value="PT">
86
  <input type="hidden" name="item_name" value="Marco Almeida (Wonderm00n)">
87
  <input type="hidden" name="item_number" value="facebook_open_graph_plugin">
88
- <input type="hidden" name="currency_code" value="USD">
 
 
 
89
  <input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHosted">
90
  <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
91
  <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
4
  * @version 2.1.2
5
  */
6
 
 
 
7
  $links = array(
8
  0 => array(
9
  'text' => __('Test your URLs on the Facebook Debugger', 'wonderm00ns-simple-facebook-open-graph-tags'),
83
  <input type="hidden" name="lc" value="PT">
84
  <input type="hidden" name="item_name" value="Marco Almeida (Wonderm00n)">
85
  <input type="hidden" name="item_number" value="facebook_open_graph_plugin">
86
+ <select name="currency_code">
87
+ <option value="USD"><?php _e('Donate in US Dollars', 'wonderm00ns-simple-facebook-open-graph-tags'); ?></option>
88
+ <option value="EUR"><?php _e('Donate in Euros', 'wonderm00ns-simple-facebook-open-graph-tags'); ?></option>
89
+ </select>
90
  <input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHosted">
91
  <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
92
  <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
admin/options-page.php CHANGED
@@ -8,6 +8,8 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
8
 
9
  wp_enqueue_media();
10
 
 
 
11
  ?>
12
  <div class="wrap" id="webdados_fb_admin">
13
 
@@ -103,7 +105,7 @@ wp_enqueue_media();
103
 
104
 
105
  <div class="clear">
106
- <p><br/>&copy 2011<?php if(date( 'Y' )>2011) echo '-'.date( 'Y' ); ?> <a href="https://www.webdados.pt/<?php echo esc_attr($out_link_utm); ?>" target="_blank">Webdados</a> &amp; <a href="https://wonderm00n.com/<?php echo esc_attr($out_link_utm); ?>" target="_blank">Marco Almeida (Wonderm00n)</a></p>
107
  </div>
108
 
109
 
8
 
9
  wp_enqueue_media();
10
 
11
+ $out_link_utm='?utm_source='.urlencode(home_url()).'&amp;utm_medium=link&amp;utm_campaign=fb_og_wp_plugin';
12
+
13
  ?>
14
  <div class="wrap" id="webdados_fb_admin">
15
 
105
 
106
 
107
  <div class="clear">
108
+ <p><br/>&copy; 2011-<?php echo date( 'Y' ); ?> <a href="https://www.webdados.pt/<?php echo esc_attr($out_link_utm); ?>" target="_blank">Webdados</a> &amp; <a href="https://wonderm00n.com/<?php echo esc_attr($out_link_utm); ?>" target="_blank">Marco Almeida (Wonderm00n)</a></p>
109
  </div>
110
 
111
 
includes/class-webdados-fb-open-graph.php CHANGED
@@ -148,6 +148,8 @@ class Webdados_FB {
148
  'fb_keep_data_uninstall' => 'intval',
149
  'fb_adv_force_local' => 'intval',
150
  'fb_adv_notify_fb' => 'intval',
 
 
151
  'fb_adv_supress_fb_notice' => 'intval',
152
  'fb_twitter_card_type' => 'trim',
153
  'fb_wc_usecategthumb' => 'intval',
148
  'fb_keep_data_uninstall' => 'intval',
149
  'fb_adv_force_local' => 'intval',
150
  'fb_adv_notify_fb' => 'intval',
151
+ 'fb_adv_notify_fb_app_id' => 'trim',
152
+ 'fb_adv_notify_fb_app_secret' => 'trim',
153
  'fb_adv_supress_fb_notice' => 'intval',
154
  'fb_twitter_card_type' => 'trim',
155
  'fb_wc_usecategthumb' => 'intval',
lang/wonderm00ns-simple-facebook-open-graph-tags.pot CHANGED
@@ -4,7 +4,7 @@ msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Facebook Open Graph, Google+ and Twitter Card Tags "
6
  "2.0.3\n"
7
- "POT-Creation-Date: 2017-11-21 10:47+0000\n"
8
  "PO-Revision-Date: 2016-09-26 14:52+0100\n"
9
  "Last-Translator: \n"
10
  "Language-Team: \n"
@@ -38,90 +38,91 @@ msgstr ""
38
  msgid "Facebook profile URL"
39
  msgstr ""
40
 
41
- #: admin/class-webdados-fb-open-graph-admin.php:103
42
- #: admin/class-webdados-fb-open-graph-admin.php:128
43
- #: admin/class-webdados-fb-open-graph-admin.php:375
44
  msgid "Use this image"
45
  msgstr ""
46
 
47
- #: admin/class-webdados-fb-open-graph-admin.php:108
48
  #: admin/options-page-general.php:121 admin/options-page-general.php:187
49
  msgid "Upload/Choose"
50
  msgstr ""
51
 
52
- #: admin/class-webdados-fb-open-graph-admin.php:109
53
  msgid "Clear field"
54
  msgstr ""
55
 
56
- #: admin/class-webdados-fb-open-graph-admin.php:111
57
  #: admin/options-page-general.php:128
58
  #, php-format
59
  msgid "Recommended size: %dx%dpx"
60
  msgstr ""
61
 
62
- #: admin/class-webdados-fb-open-graph-admin.php:127
63
- #: admin/class-webdados-fb-open-graph-admin.php:374
64
  msgid "Select image"
65
  msgstr ""
66
 
67
- #: admin/class-webdados-fb-open-graph-admin.php:159
68
  msgid "Use this description"
69
  msgstr ""
70
 
71
- #: admin/class-webdados-fb-open-graph-admin.php:165
72
  msgid "The Yoast SEO integration is active, so it's description will be used"
73
  msgstr ""
74
 
75
- #: admin/class-webdados-fb-open-graph-admin.php:171
76
  msgid ""
77
  "If this field is not filled, the description will be generated from the "
78
  "excerpt, if it exists, or from the content"
79
  msgstr ""
80
 
81
- #: admin/class-webdados-fb-open-graph-admin.php:242
82
  msgid "URL failed:"
83
  msgstr ""
84
 
85
- #: admin/class-webdados-fb-open-graph-admin.php:254
86
  msgid "Facebook returned:"
87
  msgstr ""
88
 
89
- #: admin/class-webdados-fb-open-graph-admin.php:257
90
  msgid "Unknown error"
91
  msgstr ""
92
 
93
- #: admin/class-webdados-fb-open-graph-admin.php:286
94
  msgid "Facebook Open Graph Tags cache updated/purged."
95
  msgstr ""
96
 
97
- #: admin/class-webdados-fb-open-graph-admin.php:286
 
98
  msgid "Share this on Facebook"
99
  msgstr ""
100
 
101
- #: admin/class-webdados-fb-open-graph-admin.php:296
102
  msgid "Error: Facebook Open Graph Tags cache NOT updated/purged."
103
  msgstr ""
104
 
105
- #: admin/class-webdados-fb-open-graph-admin.php:301
106
  msgid "This is NOT a plugin error."
107
  msgstr ""
108
 
109
- #: admin/class-webdados-fb-open-graph-admin.php:304
110
  msgid "Do not open support tickets about this issue."
111
  msgstr ""
112
 
113
- #: admin/class-webdados-fb-open-graph-admin.php:305
114
  msgid ""
115
  "Lately and unfortunately, Facebook is not allowing to update the cache "
116
  "programmatically."
117
  msgstr ""
118
 
119
- #: admin/class-webdados-fb-open-graph-admin.php:307
120
  msgid ""
121
  "Click here to try to clear the cache manually and then click \"Scrape Again\""
122
  msgstr ""
123
 
124
- #: admin/class-webdados-fb-open-graph-admin.php:355
125
  msgid "Manually update Facebook cache"
126
  msgstr ""
127
 
@@ -201,7 +202,7 @@ msgstr ""
201
  #: admin/options-page-3rdparty.php:167 admin/options-page-facebook.php:28
202
  #: admin/options-page-facebook.php:56 admin/options-page-facebook.php:70
203
  #: admin/options-page-facebook.php:86 admin/options-page-facebook.php:118
204
- #: admin/options-page-facebook.php:292 admin/options-page-general.php:130
205
  #: admin/options-page-schema.php:28 admin/options-page-schema.php:42
206
  #: admin/options-page-schema.php:56 admin/options-page-schema.php:74
207
  #: admin/options-page-seo.php:36 admin/options-page-seo.php:58
@@ -401,75 +402,104 @@ msgstr ""
401
  msgid "List loaded from local cache (offline)"
402
  msgstr ""
403
 
404
- #: admin/options-page-facebook.php:285
405
  msgid "You\\'l lose any changes you haven\\'t saved. Are you sure?"
406
  msgstr ""
407
 
408
- #: admin/options-page-facebook.php:285
409
  msgid "Reload from Facebook"
410
  msgstr ""
411
 
412
- #: admin/options-page-facebook.php:287
413
  msgid "List not loaded"
414
  msgstr ""
415
 
416
- #: admin/options-page-facebook.php:297
417
  msgid "Include Facebook Admin(s) ID"
418
  msgstr ""
419
 
420
- #: admin/options-page-facebook.php:309
421
  msgid "Facebook Admin(s) ID"
422
  msgstr ""
423
 
424
- #: admin/options-page-facebook.php:316
425
  msgid "Comma separated if more than one"
426
  msgstr ""
427
 
428
- #: admin/options-page-facebook.php:321
429
  msgid "Include Facebook Platform App ID"
430
  msgstr ""
431
 
432
- #: admin/options-page-facebook.php:333
433
  msgid "Facebook Platform App ID"
434
  msgstr ""
435
 
436
- #: admin/options-page-facebook.php:340
437
  msgid "From your Facebook Developers dashboard"
438
  msgstr ""
439
 
440
- #: admin/options-page-facebook.php:344
441
  msgid "Declaration Method"
442
  msgstr ""
443
 
444
- #: admin/options-page-facebook.php:354
445
  msgid "or"
446
  msgstr ""
447
 
448
- #: admin/options-page-facebook.php:356
449
  msgid ""
450
  "Prefix is recommended because it validates properly with the W3C validator, "
451
  "xmlns is the legacy method"
452
  msgstr ""
453
 
454
- #: admin/options-page-facebook.php:365
455
  msgid "Facebook Open Graph Tags cache"
456
  msgstr ""
457
 
458
- #: admin/options-page-facebook.php:371
459
  msgid "Clear cache"
460
  msgstr ""
461
 
462
- #: admin/options-page-facebook.php:378
463
  msgid ""
464
  "Try to clear the Facebook Open Graph Tags cache when saving a post or page, "
465
  "so the link preview on Facebook is immediately updated"
466
  msgstr ""
467
 
468
- #: admin/options-page-facebook.php:383
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
469
  msgid "Suppress cache notices"
470
  msgstr ""
471
 
472
- #: admin/options-page-facebook.php:390
473
  msgid ""
474
  "Sometimes we aren't able to update the cache and the post author will see a "
475
  "notice if this option is not checked"
@@ -707,77 +737,85 @@ msgid ""
707
  "Keep the plugin settings on the database even if the plugin is uninstalled"
708
  msgstr ""
709
 
710
- #: admin/options-page-right.php:11
711
  msgid "Test your URLs on the Facebook Debugger"
712
  msgstr ""
713
 
714
- #: admin/options-page-right.php:15
715
  msgid "Test your URLs on the Twitter Card validator"
716
  msgstr ""
717
 
718
- #: admin/options-page-right.php:19
719
  msgid "About the Open Graph Protocol (on Facebook)"
720
  msgstr ""
721
 
722
- #: admin/options-page-right.php:23
723
  msgid "The Open Graph Protocol (official website)"
724
  msgstr ""
725
 
726
- #: admin/options-page-right.php:27
727
  msgid "About Twitter Cards"
728
  msgstr ""
729
 
730
- #: admin/options-page-right.php:31
731
  msgid "Plugin official URL"
732
  msgstr ""
733
 
734
- #: admin/options-page-right.php:35
735
  msgid "Author's website: Webdados"
736
  msgstr ""
737
 
738
- #: admin/options-page-right.php:39
739
  msgid "Author's Facebook page: Webdados"
740
  msgstr ""
741
 
742
- #: admin/options-page-right.php:43
743
  msgid "Author's Twitter account: @Wonderm00n<br/>(Webdados founder)"
744
  msgstr ""
745
 
746
- #: admin/options-page-right.php:54
747
  msgid "About this plugin"
748
  msgstr ""
749
 
750
- #: admin/options-page-right.php:56
751
  msgid "Support forum"
752
  msgstr ""
753
 
754
- #: admin/options-page-right.php:58
755
  msgid "Premium technical support or custom WordPress development"
756
  msgstr ""
757
 
758
- #: admin/options-page-right.php:59
759
  #, php-format
760
  msgid "Please contact %s"
761
  msgstr ""
762
 
763
- #: admin/options-page-right.php:60
764
  msgid "Please rate our plugin at WordPress.org"
765
  msgstr ""
766
 
767
- #: admin/options-page-right.php:68
768
  msgid "Useful links"
769
  msgstr ""
770
 
771
- #: admin/options-page-right.php:79
772
  msgid "Donate"
773
  msgstr ""
774
 
775
- #: admin/options-page-right.php:81
776
  msgid ""
777
  "If you find this plugin useful and want to make a contribution towards "
778
  "future development please consider making a small, or big ;-), donation."
779
  msgstr ""
780
 
 
 
 
 
 
 
 
 
781
  #: admin/options-page-schema.php:11
782
  msgid "Schema.org tags used by Google+ to render link share posts."
783
  msgstr ""
@@ -886,34 +924,34 @@ msgstr ""
886
  msgid "The type of Twitter Card shown on the timeline"
887
  msgstr ""
888
 
889
- #: admin/options-page.php:16
890
  msgid ""
891
  "Please set some default values and which tags should, or should not, be "
892
  "included. It may be necessary to exclude some tags if other plugins are "
893
  "already including them."
894
  msgstr ""
895
 
896
- #: admin/options-page.php:33
897
  msgid "General"
898
  msgstr ""
899
 
900
- #: admin/options-page.php:39
901
  msgid "Open Graph"
902
  msgstr ""
903
 
904
- #: admin/options-page.php:45
905
  msgid "Cards"
906
  msgstr ""
907
 
908
- #: admin/options-page.php:51
909
  msgid "Schema"
910
  msgstr ""
911
 
912
- #: admin/options-page.php:57
913
  msgid "SEO tags"
914
  msgstr ""
915
 
916
- #: admin/options-page.php:63
917
  msgid "3rd party"
918
  msgstr ""
919
 
@@ -937,7 +975,7 @@ msgstr ""
937
 
938
  #. Plugin URI of the plugin/theme
939
  msgid ""
940
- "http://www.webdados.pt/produtos-e-servicos/internet/desenvolvimento-"
941
  "wordpress/facebook-open-graph-meta-tags-wordpress/"
942
  msgstr ""
943
 
@@ -955,5 +993,5 @@ msgid "Webdados"
955
  msgstr ""
956
 
957
  #. Author URI of the plugin/theme
958
- msgid "http://www.webdados.pt"
959
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Facebook Open Graph, Google+ and Twitter Card Tags "
6
  "2.0.3\n"
7
+ "POT-Creation-Date: 2017-12-23 13:20+0000\n"
8
  "PO-Revision-Date: 2016-09-26 14:52+0100\n"
9
  "Last-Translator: \n"
10
  "Language-Team: \n"
38
  msgid "Facebook profile URL"
39
  msgstr ""
40
 
41
+ #: admin/class-webdados-fb-open-graph-admin.php:115
42
+ #: admin/class-webdados-fb-open-graph-admin.php:140
43
+ #: admin/class-webdados-fb-open-graph-admin.php:403
44
  msgid "Use this image"
45
  msgstr ""
46
 
47
+ #: admin/class-webdados-fb-open-graph-admin.php:120
48
  #: admin/options-page-general.php:121 admin/options-page-general.php:187
49
  msgid "Upload/Choose"
50
  msgstr ""
51
 
52
+ #: admin/class-webdados-fb-open-graph-admin.php:121
53
  msgid "Clear field"
54
  msgstr ""
55
 
56
+ #: admin/class-webdados-fb-open-graph-admin.php:123
57
  #: admin/options-page-general.php:128
58
  #, php-format
59
  msgid "Recommended size: %dx%dpx"
60
  msgstr ""
61
 
62
+ #: admin/class-webdados-fb-open-graph-admin.php:139
63
+ #: admin/class-webdados-fb-open-graph-admin.php:402
64
  msgid "Select image"
65
  msgstr ""
66
 
67
+ #: admin/class-webdados-fb-open-graph-admin.php:171
68
  msgid "Use this description"
69
  msgstr ""
70
 
71
+ #: admin/class-webdados-fb-open-graph-admin.php:177
72
  msgid "The Yoast SEO integration is active, so it's description will be used"
73
  msgstr ""
74
 
75
+ #: admin/class-webdados-fb-open-graph-admin.php:183
76
  msgid ""
77
  "If this field is not filled, the description will be generated from the "
78
  "excerpt, if it exists, or from the content"
79
  msgstr ""
80
 
81
+ #: admin/class-webdados-fb-open-graph-admin.php:261
82
  msgid "URL failed:"
83
  msgstr ""
84
 
85
+ #: admin/class-webdados-fb-open-graph-admin.php:273
86
  msgid "Facebook returned:"
87
  msgstr ""
88
 
89
+ #: admin/class-webdados-fb-open-graph-admin.php:276
90
  msgid "Unknown error"
91
  msgstr ""
92
 
93
+ #: admin/class-webdados-fb-open-graph-admin.php:305
94
  msgid "Facebook Open Graph Tags cache updated/purged."
95
  msgstr ""
96
 
97
+ #: admin/class-webdados-fb-open-graph-admin.php:305
98
+ #: admin/class-webdados-fb-open-graph-admin.php:377
99
  msgid "Share this on Facebook"
100
  msgstr ""
101
 
102
+ #: admin/class-webdados-fb-open-graph-admin.php:315
103
  msgid "Error: Facebook Open Graph Tags cache NOT updated/purged."
104
  msgstr ""
105
 
106
+ #: admin/class-webdados-fb-open-graph-admin.php:320
107
  msgid "This is NOT a plugin error."
108
  msgstr ""
109
 
110
+ #: admin/class-webdados-fb-open-graph-admin.php:323
111
  msgid "Do not open support tickets about this issue."
112
  msgstr ""
113
 
114
+ #: admin/class-webdados-fb-open-graph-admin.php:324
115
  msgid ""
116
  "Lately and unfortunately, Facebook is not allowing to update the cache "
117
  "programmatically."
118
  msgstr ""
119
 
120
+ #: admin/class-webdados-fb-open-graph-admin.php:326
121
  msgid ""
122
  "Click here to try to clear the cache manually and then click \"Scrape Again\""
123
  msgstr ""
124
 
125
+ #: admin/class-webdados-fb-open-graph-admin.php:376
126
  msgid "Manually update Facebook cache"
127
  msgstr ""
128
 
202
  #: admin/options-page-3rdparty.php:167 admin/options-page-facebook.php:28
203
  #: admin/options-page-facebook.php:56 admin/options-page-facebook.php:70
204
  #: admin/options-page-facebook.php:86 admin/options-page-facebook.php:118
205
+ #: admin/options-page-facebook.php:294 admin/options-page-general.php:130
206
  #: admin/options-page-schema.php:28 admin/options-page-schema.php:42
207
  #: admin/options-page-schema.php:56 admin/options-page-schema.php:74
208
  #: admin/options-page-seo.php:36 admin/options-page-seo.php:58
402
  msgid "List loaded from local cache (offline)"
403
  msgstr ""
404
 
405
+ #: admin/options-page-facebook.php:286
406
  msgid "You\\'l lose any changes you haven\\'t saved. Are you sure?"
407
  msgstr ""
408
 
409
+ #: admin/options-page-facebook.php:286
410
  msgid "Reload from Facebook"
411
  msgstr ""
412
 
413
+ #: admin/options-page-facebook.php:289
414
  msgid "List not loaded"
415
  msgstr ""
416
 
417
+ #: admin/options-page-facebook.php:299
418
  msgid "Include Facebook Admin(s) ID"
419
  msgstr ""
420
 
421
+ #: admin/options-page-facebook.php:311
422
  msgid "Facebook Admin(s) ID"
423
  msgstr ""
424
 
425
+ #: admin/options-page-facebook.php:318
426
  msgid "Comma separated if more than one"
427
  msgstr ""
428
 
429
+ #: admin/options-page-facebook.php:323
430
  msgid "Include Facebook Platform App ID"
431
  msgstr ""
432
 
433
+ #: admin/options-page-facebook.php:335
434
  msgid "Facebook Platform App ID"
435
  msgstr ""
436
 
437
+ #: admin/options-page-facebook.php:342
438
  msgid "From your Facebook Developers dashboard"
439
  msgstr ""
440
 
441
+ #: admin/options-page-facebook.php:346
442
  msgid "Declaration Method"
443
  msgstr ""
444
 
445
+ #: admin/options-page-facebook.php:356
446
  msgid "or"
447
  msgstr ""
448
 
449
+ #: admin/options-page-facebook.php:358
450
  msgid ""
451
  "Prefix is recommended because it validates properly with the W3C validator, "
452
  "xmlns is the legacy method"
453
  msgstr ""
454
 
455
+ #: admin/options-page-facebook.php:367
456
  msgid "Facebook Open Graph Tags cache"
457
  msgstr ""
458
 
459
+ #: admin/options-page-facebook.php:373
460
  msgid "Clear cache"
461
  msgstr ""
462
 
463
+ #: admin/options-page-facebook.php:380
464
  msgid ""
465
  "Try to clear the Facebook Open Graph Tags cache when saving a post or page, "
466
  "so the link preview on Facebook is immediately updated"
467
  msgstr ""
468
 
469
+ #: admin/options-page-facebook.php:385
470
+ msgid "App ID"
471
+ msgstr ""
472
+
473
+ #: admin/options-page-facebook.php:392
474
+ msgid "App Secret"
475
+ msgstr ""
476
+
477
+ #: admin/options-page-facebook.php:399
478
+ #, php-format
479
+ msgid ""
480
+ "Facebook no longer allows updating the cache anonymously, so you have to use "
481
+ "a App ID and Secret to do it. <a href=\"%s\" target=\"_blank\">Read here</a> "
482
+ "how to do it."
483
+ msgstr ""
484
+
485
+ #: admin/options-page-facebook.php:401
486
+ msgid ""
487
+ "If you are using the (now deprecated) <i>fb_og_update_cache_url</i> filter, "
488
+ "this ID and Secret will NOT be used. You should stop using the filter and "
489
+ "use these settings."
490
+ msgstr ""
491
+
492
+ #: admin/options-page-facebook.php:403
493
+ msgid ""
494
+ "Please do not ask for support regarding this feature. Everything is "
495
+ "explained in the blog post linked above."
496
+ msgstr ""
497
+
498
+ #: admin/options-page-facebook.php:408
499
  msgid "Suppress cache notices"
500
  msgstr ""
501
 
502
+ #: admin/options-page-facebook.php:415
503
  msgid ""
504
  "Sometimes we aren't able to update the cache and the post author will see a "
505
  "notice if this option is not checked"
737
  "Keep the plugin settings on the database even if the plugin is uninstalled"
738
  msgstr ""
739
 
740
+ #: admin/options-page-right.php:9
741
  msgid "Test your URLs on the Facebook Debugger"
742
  msgstr ""
743
 
744
+ #: admin/options-page-right.php:13
745
  msgid "Test your URLs on the Twitter Card validator"
746
  msgstr ""
747
 
748
+ #: admin/options-page-right.php:17
749
  msgid "About the Open Graph Protocol (on Facebook)"
750
  msgstr ""
751
 
752
+ #: admin/options-page-right.php:21
753
  msgid "The Open Graph Protocol (official website)"
754
  msgstr ""
755
 
756
+ #: admin/options-page-right.php:25
757
  msgid "About Twitter Cards"
758
  msgstr ""
759
 
760
+ #: admin/options-page-right.php:29
761
  msgid "Plugin official URL"
762
  msgstr ""
763
 
764
+ #: admin/options-page-right.php:33
765
  msgid "Author's website: Webdados"
766
  msgstr ""
767
 
768
+ #: admin/options-page-right.php:37
769
  msgid "Author's Facebook page: Webdados"
770
  msgstr ""
771
 
772
+ #: admin/options-page-right.php:41
773
  msgid "Author's Twitter account: @Wonderm00n<br/>(Webdados founder)"
774
  msgstr ""
775
 
776
+ #: admin/options-page-right.php:52
777
  msgid "About this plugin"
778
  msgstr ""
779
 
780
+ #: admin/options-page-right.php:54
781
  msgid "Support forum"
782
  msgstr ""
783
 
784
+ #: admin/options-page-right.php:56
785
  msgid "Premium technical support or custom WordPress development"
786
  msgstr ""
787
 
788
+ #: admin/options-page-right.php:57
789
  #, php-format
790
  msgid "Please contact %s"
791
  msgstr ""
792
 
793
+ #: admin/options-page-right.php:58
794
  msgid "Please rate our plugin at WordPress.org"
795
  msgstr ""
796
 
797
+ #: admin/options-page-right.php:66
798
  msgid "Useful links"
799
  msgstr ""
800
 
801
+ #: admin/options-page-right.php:77
802
  msgid "Donate"
803
  msgstr ""
804
 
805
+ #: admin/options-page-right.php:79
806
  msgid ""
807
  "If you find this plugin useful and want to make a contribution towards "
808
  "future development please consider making a small, or big ;-), donation."
809
  msgstr ""
810
 
811
+ #: admin/options-page-right.php:87
812
+ msgid "Donate in US Dollars"
813
+ msgstr ""
814
+
815
+ #: admin/options-page-right.php:88
816
+ msgid "Donate in Euros"
817
+ msgstr ""
818
+
819
  #: admin/options-page-schema.php:11
820
  msgid "Schema.org tags used by Google+ to render link share posts."
821
  msgstr ""
924
  msgid "The type of Twitter Card shown on the timeline"
925
  msgstr ""
926
 
927
+ #: admin/options-page.php:18
928
  msgid ""
929
  "Please set some default values and which tags should, or should not, be "
930
  "included. It may be necessary to exclude some tags if other plugins are "
931
  "already including them."
932
  msgstr ""
933
 
934
+ #: admin/options-page.php:35
935
  msgid "General"
936
  msgstr ""
937
 
938
+ #: admin/options-page.php:41
939
  msgid "Open Graph"
940
  msgstr ""
941
 
942
+ #: admin/options-page.php:47
943
  msgid "Cards"
944
  msgstr ""
945
 
946
+ #: admin/options-page.php:53
947
  msgid "Schema"
948
  msgstr ""
949
 
950
+ #: admin/options-page.php:59
951
  msgid "SEO tags"
952
  msgstr ""
953
 
954
+ #: admin/options-page.php:65
955
  msgid "3rd party"
956
  msgstr ""
957
 
975
 
976
  #. Plugin URI of the plugin/theme
977
  msgid ""
978
+ "https://www.webdados.pt/produtos-e-servicos/internet/desenvolvimento-"
979
  "wordpress/facebook-open-graph-meta-tags-wordpress/"
980
  msgstr ""
981
 
993
  msgstr ""
994
 
995
  #. Author URI of the plugin/theme
996
+ msgid "https://www.webdados.pt"
997
  msgstr ""
public/class-webdados-fb-open-graph-public.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * @package Facebook Open Graph, Google+ and Twitter Card Tags
4
- * @version 2.1.5
5
  */
6
 
7
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
1
  <?php
2
  /**
3
  * @package Facebook Open Graph, Google+ and Twitter Card Tags
4
+ * @version 2.1.6
5
  */
6
 
7
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
readme.txt CHANGED
@@ -1,10 +1,11 @@
1
  === Facebook Open Graph, Google+ and Twitter Card Tags ===
2
  Contributors: webdados, wonderm00n
3
- Donate link: https://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-facebook-open-graph-tags/
4
  Tags: facebook, open graph, open graph protocol, share, social, meta, rss, twitter card, twitter, schema, google+, g+, google, google plus, image, like, seo, search engine optimization, woocommerce, yoast seo, wordpress seo, woocommerce, subheading, php7
5
  Requires at least: 4.5
6
- Tested up to: 4.9
7
- Stable tag: 2.1.5
 
8
  Inserts Facebook Open Graph, Google+/Schema.org, Twitter and SEO Meta Tags into your WordPress Website for more efficient sharing results.
9
 
10
  == Description ==
@@ -85,14 +86,6 @@ Our settings page is discreetly kept under "Options", as it should, instead of t
85
 
86
  == Frequently Asked Questions ==
87
 
88
- = Yoast SEO shows up a big nasty warning if both plugins are active. Is the world in danger if I keep both plugins active? =
89
-
90
- No it isn't.
91
- You can (and, in our opinion, you should) use both plugins. If you want to use Yoast SEO for your SEO needs and our plugin for social media meta tags you just have to go to "SEO > Social" and disable settings for Facebook, Twitter and Google+.
92
- If you don't find that option, because they've now made it harder to reach, you have to go to "SEO > Dashboard > Features > Advanced settings pages > choose Enabled and Save changes". Then you can reach "SEO > Social".
93
- Then set up our plugin as you wish and you're ready to go.
94
- We like to work with everybody, so (if you want to) our plugin can even integrate with Yoast SEO and use it's title, description and canonical URL on the Facebook, Google+ and Twitter tags.
95
-
96
  = Facebook is not showing up the correct image when I share a post. What can I do? =
97
 
98
  1. Are you using a big enough image? The minimum image size is 200x200 pixels but we recommend 1200x630.
@@ -112,8 +105,8 @@ Sometimes the plugin just can't update the Facebook cache itself and you may nee
112
 
113
  = Can I authenticate the call to Facebook, with my own app, when trying to update the cache, so I get rid of the "An access token is required to request this resource" error? =
114
 
115
- Yes, you can. Create a Facebook app and then use the `fb_og_update_cache_url` filter, like in this [code snippet](https://gist.github.com/webdados/32f2669fbe7653520664be410e5a03b2)
116
- Do NOT ask us support on this. This is an advanced feature for developers only.
117
 
118
  = Can this plugin get content from "random plugin"? =
119
 
@@ -124,12 +117,20 @@ If you are a plugin or theme author you can always use our filters `fb_og_title`
124
 
125
  Chouck out this [code snippet](https://gist.github.com/webdados/ef5d5db01f01bee6041c2b2e0950d73a).
126
 
127
- = I'me getting a white screen of death / truncated HTML =
128
 
129
  Go to the plugin settings and check the `Do not get image size` option.
130
  This happens on some edge cases we haven't yet been able to identify.
131
  Update: Probably fixed on 2.1.4.5
132
 
 
 
 
 
 
 
 
 
133
  = There's a similar plugin on the repository, by Heateor. Is this the same? =
134
 
135
  It's similar, yes. They've forked our plugin and gave no credits whatsoever for our original work.
@@ -142,6 +143,11 @@ We DO NOT provide email support for this plugin. If you send us an email asking
142
 
143
  == Changelog ==
144
 
 
 
 
 
 
145
  = 2.1.5 =
146
  * Stop showing the metabox or trying to update Facebook cache on non-publicly_queryable post types
147
 
1
  === Facebook Open Graph, Google+ and Twitter Card Tags ===
2
  Contributors: webdados, wonderm00n
3
+ Donate link: http://bit.ly/donate_fb_opengraph
4
  Tags: facebook, open graph, open graph protocol, share, social, meta, rss, twitter card, twitter, schema, google+, g+, google, google plus, image, like, seo, search engine optimization, woocommerce, yoast seo, wordpress seo, woocommerce, subheading, php7
5
  Requires at least: 4.5
6
+ Tested up to: 4.9.1
7
+ Stable tag: 2.1.6
8
+
9
  Inserts Facebook Open Graph, Google+/Schema.org, Twitter and SEO Meta Tags into your WordPress Website for more efficient sharing results.
10
 
11
  == Description ==
86
 
87
  == Frequently Asked Questions ==
88
 
 
 
 
 
 
 
 
 
89
  = Facebook is not showing up the correct image when I share a post. What can I do? =
90
 
91
  1. Are you using a big enough image? The minimum image size is 200x200 pixels but we recommend 1200x630.
105
 
106
  = Can I authenticate the call to Facebook, with my own app, when trying to update the cache, so I get rid of the "An access token is required to request this resource" error? =
107
 
108
+ Yes, you can. Create a Facebook App and fill in the details on the "Facebook Open Graph Tags cache" panel of the plugin settings page.
109
+ Do NOT ask us support on this. There is [a blog post on our website](https://www.webdados.pt/2017/12/successfully-update-facebook-cache-using-our-facebook-open-graph-plugin/) explaining everything you need to do.
110
 
111
  = Can this plugin get content from "random plugin"? =
112
 
117
 
118
  Chouck out this [code snippet](https://gist.github.com/webdados/ef5d5db01f01bee6041c2b2e0950d73a).
119
 
120
+ = I'm getting a white screen of death / truncated HTML =
121
 
122
  Go to the plugin settings and check the `Do not get image size` option.
123
  This happens on some edge cases we haven't yet been able to identify.
124
  Update: Probably fixed on 2.1.4.5
125
 
126
+ = Yoast SEO shows up a big nasty warning if both plugins are active. Is the world in danger if I keep both plugins active? =
127
+
128
+ No it isn't.
129
+ You can (and, in our opinion, you should) use both plugins. If you want to use Yoast SEO for your SEO needs and our plugin for social media meta tags you just have to go to "SEO > Social" and disable settings for Facebook, Twitter and Google+.
130
+ If you don't find that option, because they've now made it harder to reach, you have to go to "SEO > Dashboard > Features > Advanced settings pages > choose Enabled and Save changes". Then you can reach "SEO > Social".
131
+ Then set up our plugin as you wish and you're ready to go.
132
+ We like to work with everybody, so (if you want to) our plugin can even integrate with Yoast SEO and use it's title, description and canonical URL on the Facebook, Google+ and Twitter tags.
133
+
134
  = There's a similar plugin on the repository, by Heateor. Is this the same? =
135
 
136
  It's similar, yes. They've forked our plugin and gave no credits whatsoever for our original work.
143
 
144
  == Changelog ==
145
 
146
+ = 2.1.6 =
147
+ * Added new "App ID" and "App Secret" settings on the "Facebook Open Graph Tags cache" panel, so that the plugin tries to clear the Facebook cache authenticated with you own App details
148
+ * Bumped `Tested up to` and `WC tested up to` tags
149
+ * Improved the FAQ
150
+
151
  = 2.1.5 =
152
  * Stop showing the metabox or trying to update Facebook cache on non-publicly_queryable post types
153
 
wonderm00n-open-graph.php CHANGED
@@ -1,24 +1,24 @@
1
  <?php
2
  /**
3
  * @package Facebook Open Graph, Google+ and Twitter Card Tags
4
- * @version 2.1.5
5
  */
6
  /*
7
  Plugin Name: Facebook Open Graph, Google+ and Twitter Card Tags
8
  Plugin URI: https://www.webdados.pt/produtos-e-servicos/internet/desenvolvimento-wordpress/facebook-open-graph-meta-tags-wordpress/
9
  Description: Inserts Facebook Open Graph, Google+/Schema.org, Twitter Card and SEO Meta Tags into your WordPress Blog/Website for more effective and efficient Facebook, Google+ and Twitter sharing results. You can also choose to insert the "enclosure" and "media:content" tags to the RSS feeds, so that apps like RSS Graffiti and Twitterfeed post the image to Facebook correctly.
10
 
11
- Version: 2.1.5
12
  Author: Webdados
13
  Author URI: https://www.webdados.pt
14
  Text Domain: wonderm00ns-simple-facebook-open-graph-tags
15
  Domain Path: /lang
16
- WC tested up to: 3.2
17
  */
18
 
19
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
20
 
21
- define( 'WEBDADOS_FB_VERSION', '2.1.5' );
22
  define( 'WEBDADOS_FB_PLUGIN_NAME', 'Facebook Open Graph, Google+ and Twitter Card Tags' );
23
  define( 'WEBDADOS_FB_W', 1200 );
24
  define( 'WEBDADOS_FB_H', 630 );
1
  <?php
2
  /**
3
  * @package Facebook Open Graph, Google+ and Twitter Card Tags
4
+ * @version 2.1.6
5
  */
6
  /*
7
  Plugin Name: Facebook Open Graph, Google+ and Twitter Card Tags
8
  Plugin URI: https://www.webdados.pt/produtos-e-servicos/internet/desenvolvimento-wordpress/facebook-open-graph-meta-tags-wordpress/
9
  Description: Inserts Facebook Open Graph, Google+/Schema.org, Twitter Card and SEO Meta Tags into your WordPress Blog/Website for more effective and efficient Facebook, Google+ and Twitter sharing results. You can also choose to insert the "enclosure" and "media:content" tags to the RSS feeds, so that apps like RSS Graffiti and Twitterfeed post the image to Facebook correctly.
10
 
11
+ Version: 2.1.6
12
  Author: Webdados
13
  Author URI: https://www.webdados.pt
14
  Text Domain: wonderm00ns-simple-facebook-open-graph-tags
15
  Domain Path: /lang
16
+ WC tested up to: 3.2.6
17
  */
18
 
19
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
20
 
21
+ define( 'WEBDADOS_FB_VERSION', '2.1.6' );
22
  define( 'WEBDADOS_FB_PLUGIN_NAME', 'Facebook Open Graph, Google+ and Twitter Card Tags' );
23
  define( 'WEBDADOS_FB_W', 1200 );
24
  define( 'WEBDADOS_FB_H', 630 );