Version Description
- Better information when showing up the "Facebook Open Graph Tags cache NOT updated/purged" error, as well as a link to update the cache manually
- Improved the FAQ
Download this release
Release Info
Developer | webdados |
Plugin | Open Graph for Facebook, Google+ and Twitter Card Tags |
Version | 2.1.4.1 |
Comparing to | |
See all releases |
Code changes from version 2.1.4 to 2.1.4.1
admin/class-webdados-fb-open-graph-admin.php
CHANGED
@@ -235,7 +235,7 @@ class Webdados_FB_Admin {
|
|
235 |
if (get_post_status($post_id)=='publish' && intval($this->options['fb_adv_notify_fb'])==1) {
|
236 |
$status = 0;
|
237 |
$error = false;
|
238 |
-
$fb_debug_url='
|
239 |
$response = wp_remote_get($fb_debug_url);
|
240 |
if ( is_wp_error($response) ) {
|
241 |
$this->update_status = -1;
|
@@ -254,7 +254,7 @@ class Webdados_FB_Admin {
|
|
254 |
$this->update_error = __('Facebook returned:', 'wonderm00ns-simple-facebook-open-graph-tags').' '.$body->error->message;
|
255 |
} else {
|
256 |
$this->update_status = -3;
|
257 |
-
$this->update_error = __('Unknown
|
258 |
}
|
259 |
/*
|
260 |
if ( $response['response']['code']==500 ) {
|
@@ -293,9 +293,19 @@ class Webdados_FB_Admin {
|
|
293 |
?>
|
294 |
<div class="error">
|
295 |
<p><?php
|
296 |
-
echo '<
|
297 |
if ( isset($_GET['wd_fb_og_error']) ) echo '<br/>'.$_GET['wd_fb_og_error'];
|
298 |
?></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
299 |
</div>
|
300 |
<?php
|
301 |
break;
|
@@ -317,7 +327,7 @@ class Webdados_FB_Admin {
|
|
317 |
?>
|
318 |
<div class="error">
|
319 |
<p><?php
|
320 |
-
echo '<
|
321 |
echo '<br/>'.$_SESSION['wd_fb_og_updated_error_message'];
|
322 |
?></p>
|
323 |
</div>
|
235 |
if (get_post_status($post_id)=='publish' && intval($this->options['fb_adv_notify_fb'])==1) {
|
236 |
$status = 0;
|
237 |
$error = false;
|
238 |
+
$fb_debug_url='https://graph.facebook.com/?id='.urlencode(get_permalink($post_id)).'&scrape=true&method=post';
|
239 |
$response = wp_remote_get($fb_debug_url);
|
240 |
if ( is_wp_error($response) ) {
|
241 |
$this->update_status = -1;
|
254 |
$this->update_error = __('Facebook returned:', 'wonderm00ns-simple-facebook-open-graph-tags').' '.$body->error->message;
|
255 |
} else {
|
256 |
$this->update_status = -3;
|
257 |
+
$this->update_error = __('Unknown error', 'wonderm00ns-simple-facebook-open-graph-tags');
|
258 |
}
|
259 |
/*
|
260 |
if ( $response['response']['code']==500 ) {
|
293 |
?>
|
294 |
<div class="error">
|
295 |
<p><?php
|
296 |
+
echo '<strong>'.__('Error: Facebook Open Graph Tags cache NOT updated/purged.', 'wonderm00ns-simple-facebook-open-graph-tags').'</strong>';
|
297 |
if ( isset($_GET['wd_fb_og_error']) ) echo '<br/>'.$_GET['wd_fb_og_error'];
|
298 |
?></p>
|
299 |
+
<p>
|
300 |
+
<strong>
|
301 |
+
<?php _e( 'This is NOT a plugin error.', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
302 |
+
</strong>
|
303 |
+
<br/>
|
304 |
+
<?php _e( 'Do not open support tickets about this issue.', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
305 |
+
<?php _e( 'Lately and unfortunately, Facebook is not allowing to update the cache programmatically.', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
306 |
+
<br/>
|
307 |
+
<a href="https://developers.facebook.com/tools/debug/sharing/?q=<?php echo urlencode(get_permalink($post->ID)); ?>" target="_blank"><?php _e( 'Click here to try to clear the cache manually and then click "Scrape Again"', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?></a>
|
308 |
+
</p>
|
309 |
</div>
|
310 |
<?php
|
311 |
break;
|
327 |
?>
|
328 |
<div class="error">
|
329 |
<p><?php
|
330 |
+
echo '<strong>'.__('Error: Facebook Open Graph Tags cache NOT updated/purged.', 'wonderm00ns-simple-facebook-open-graph-tags').'</strong>';
|
331 |
echo '<br/>'.$_SESSION['wd_fb_og_updated_error_message'];
|
332 |
?></p>
|
333 |
</div>
|
admin/options-page-3rdparty.php
CHANGED
@@ -17,7 +17,7 @@ global $webdados_fb;
|
|
17 |
?>
|
18 |
<p>
|
19 |
<i class="dashicons-before dashicons-warning"></i>
|
20 |
-
<
|
21 |
<br/>
|
22 |
<?php _e( 'You currently have both Yoast SEO and All in One SEO Pack plugins active. This is no recommended.', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
23 |
</p>
|
@@ -117,7 +117,7 @@ global $webdados_fb;
|
|
117 |
<tr>
|
118 |
<td colspan="2">
|
119 |
<i class="dashicons-before dashicons-warning"></i>
|
120 |
-
<
|
121 |
<br/>
|
122 |
<small>
|
123 |
<?php printf( __( 'Because you are using All in One SEO Pack, and to avoid duplicate social tags, you should disable their social settings at <a href="%s" target="_blank">MISSING LINK</a>.', 'wonderm00ns-simple-facebook-open-graph-tags' ), '#' ); ?>
|
17 |
?>
|
18 |
<p>
|
19 |
<i class="dashicons-before dashicons-warning"></i>
|
20 |
+
<strong><?php _e( 'Attention', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</strong>
|
21 |
<br/>
|
22 |
<?php _e( 'You currently have both Yoast SEO and All in One SEO Pack plugins active. This is no recommended.', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
23 |
</p>
|
117 |
<tr>
|
118 |
<td colspan="2">
|
119 |
<i class="dashicons-before dashicons-warning"></i>
|
120 |
+
<strong><?php _e( 'Attention', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</strong>
|
121 |
<br/>
|
122 |
<small>
|
123 |
<?php printf( __( 'Because you are using All in One SEO Pack, and to avoid duplicate social tags, you should disable their social settings at <a href="%s" target="_blank">MISSING LINK</a>.', 'wonderm00ns-simple-facebook-open-graph-tags' ), '#' ); ?>
|
admin/options-page-general.php
CHANGED
@@ -215,7 +215,7 @@ global $webdados_fb;
|
|
215 |
</tr>
|
216 |
<tr>
|
217 |
<td colspan="2" class="info">
|
218 |
-
- <
|
219 |
<br/>
|
220 |
- <?php _e( 'Force getimagesize on local file even if allow_url_fopen=1', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
221 |
<br/>
|
@@ -233,7 +233,7 @@ global $webdados_fb;
|
|
233 |
<td colspan="2" class="info">
|
234 |
- <?php _e('Experimental', 'wonderm00ns-simple-facebook-open-graph-tags'); ?>
|
235 |
<br/>
|
236 |
-
- <
|
237 |
<br/>
|
238 |
- <?php _e( 'You should only activate this option if you\'re getting fatal errors (white screen of death) and only keep it active if this options does solve those errors', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
239 |
<br/>
|
215 |
</tr>
|
216 |
<tr>
|
217 |
<td colspan="2" class="info">
|
218 |
+
- <strong><?php _e( 'This is an advanced option: Don\'t mess with this unless you know what you\'re doing', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?></strong>
|
219 |
<br/>
|
220 |
- <?php _e( 'Force getimagesize on local file even if allow_url_fopen=1', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
221 |
<br/>
|
233 |
<td colspan="2" class="info">
|
234 |
- <?php _e('Experimental', 'wonderm00ns-simple-facebook-open-graph-tags'); ?>
|
235 |
<br/>
|
236 |
+
- <strong><?php _e( 'This is an advanced option: Don\'t mess with this unless you know what you\'re doing', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?></strong>
|
237 |
<br/>
|
238 |
- <?php _e( 'You should only activate this option if you\'re getting fatal errors (white screen of death) and only keep it active if this options does solve those errors', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
239 |
<br/>
|
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-
|
8 |
"PO-Revision-Date: 2016-09-26 14:52+0100\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: \n"
|
@@ -40,7 +40,7 @@ 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:
|
44 |
msgid "Use this image"
|
45 |
msgstr ""
|
46 |
|
@@ -60,7 +60,7 @@ 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:
|
64 |
msgid "Select image"
|
65 |
msgstr ""
|
66 |
|
@@ -82,8 +82,12 @@ msgstr ""
|
|
82 |
msgid "URL failed:"
|
83 |
msgstr ""
|
84 |
|
|
|
|
|
|
|
|
|
85 |
#: admin/class-webdados-fb-open-graph-admin.php:257
|
86 |
-
msgid "Unknown
|
87 |
msgstr ""
|
88 |
|
89 |
#: admin/class-webdados-fb-open-graph-admin.php:286
|
@@ -98,6 +102,25 @@ msgstr ""
|
|
98 |
msgid "Error: Facebook Open Graph Tags cache NOT updated/purged."
|
99 |
msgstr ""
|
100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
#: admin/options-page-3rdparty.php:13
|
102 |
msgid "Settings for 3rd party integration with other plugins."
|
103 |
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:04+0000\n"
|
8 |
"PO-Revision-Date: 2016-09-26 14:52+0100\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: \n"
|
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:355
|
44 |
msgid "Use this image"
|
45 |
msgstr ""
|
46 |
|
60 |
msgstr ""
|
61 |
|
62 |
#: admin/class-webdados-fb-open-graph-admin.php:127
|
63 |
+
#: admin/class-webdados-fb-open-graph-admin.php:354
|
64 |
msgid "Select image"
|
65 |
msgstr ""
|
66 |
|
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
|
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/options-page-3rdparty.php:13
|
125 |
msgid "Settings for 3rd party integration with other plugins."
|
126 |
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.4
|
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.4.1
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-faceb
|
|
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.4
|
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 ==
|
@@ -103,7 +103,7 @@ We like to work with everybody, so (if you want to) our plugin can even integrat
|
|
103 |
|
104 |
Each time you edit a post, if the option "Try to update Facebook Open Graph Tags cache when saving the post" is activated, we'll try to notify Facebook of the changes so it clears up it's cache and read the new Open Graph tags of this specific URL.
|
105 |
If this is a new post and it's the first time you're saving it, the error is "normal" and you should ignore it (we're looking at a workaround to not show you this error).
|
106 |
-
If this is not a new post and it's not the first time you're saving it, and if this happens always, then maybe your server does not support calling remote URLs with PHP and you should disable the "Try to update Facebook Open Graph Tags cache when saving the post" option. In that scenario we recommend you to use the [Facebook Sharing Debugger](https://developers.facebook.com/tools/debug/) to `
|
107 |
Sometimes the plugin just can't update the Facebook cache itself and you may need to do it manually on the link provided above.
|
108 |
|
109 |
= Can this plugin get content from "random plugin"? =
|
@@ -115,7 +115,13 @@ If you are a plugin or theme author you can always use our filters `fb_og_title`
|
|
115 |
|
116 |
Chouck out this [code snippet](https://gist.github.com/webdados/ef5d5db01f01bee6041c2b2e0950d73a).
|
117 |
|
|
|
|
|
|
|
|
|
|
|
118 |
= There's a similar plugin on the repository, by Heateor. Is this the same? =
|
|
|
119 |
It's similar, yes. They've forked our plugin and gave no credits whatsoever for our original work.
|
120 |
|
121 |
= Do you provide email support? =
|
@@ -126,6 +132,10 @@ We DO NOT provide email support for this plugin. If you send us an email asking
|
|
126 |
|
127 |
== Changelog ==
|
128 |
|
|
|
|
|
|
|
|
|
129 |
= 2.1.4 =
|
130 |
* Changed the way the admin notices are generated so we do not have to use PHP sessions
|
131 |
|
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.4.1
|
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 ==
|
103 |
|
104 |
Each time you edit a post, if the option "Try to update Facebook Open Graph Tags cache when saving the post" is activated, we'll try to notify Facebook of the changes so it clears up it's cache and read the new Open Graph tags of this specific URL.
|
105 |
If this is a new post and it's the first time you're saving it, the error is "normal" and you should ignore it (we're looking at a workaround to not show you this error).
|
106 |
+
If this is not a new post and it's not the first time you're saving it, and if this happens always, then maybe your server does not support calling remote URLs with PHP and you should disable the "Try to update Facebook Open Graph Tags cache when saving the post" option. In that scenario we recommend you to use the [Facebook Sharing Debugger](https://developers.facebook.com/tools/debug/) to `Scrape again` each time you update your post.
|
107 |
Sometimes the plugin just can't update the Facebook cache itself and you may need to do it manually on the link provided above.
|
108 |
|
109 |
= Can this plugin get content from "random plugin"? =
|
115 |
|
116 |
Chouck out this [code snippet](https://gist.github.com/webdados/ef5d5db01f01bee6041c2b2e0950d73a).
|
117 |
|
118 |
+
= I'me getting a white screen of death / truncated HTML =
|
119 |
+
|
120 |
+
Go to the plugin settings and check the `Do not get image size` option.
|
121 |
+
This happens on some edge cases we haven't yet been able to identify.
|
122 |
+
|
123 |
= There's a similar plugin on the repository, by Heateor. Is this the same? =
|
124 |
+
|
125 |
It's similar, yes. They've forked our plugin and gave no credits whatsoever for our original work.
|
126 |
|
127 |
= Do you provide email support? =
|
132 |
|
133 |
== Changelog ==
|
134 |
|
135 |
+
= 2.1.4.1 =
|
136 |
+
* Better information when showing up the "Facebook Open Graph Tags cache NOT updated/purged" error, as well as a link to update the cache manually
|
137 |
+
* Improved the FAQ
|
138 |
+
|
139 |
= 2.1.4 =
|
140 |
* Changed the way the admin notices are generated so we do not have to use PHP sessions
|
141 |
|
wonderm00n-open-graph.php
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1.4
|
5 |
*/
|
6 |
/*
|
7 |
Plugin Name: Facebook Open Graph, Google+ and Twitter Card Tags
|
8 |
Plugin URI: http://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.4
|
12 |
Author: Webdados
|
13 |
Author URI: http://www.webdados.pt
|
14 |
Text Domain: wonderm00ns-simple-facebook-open-graph-tags
|
@@ -18,7 +18,7 @@ WC tested up to: 3.2
|
|
18 |
|
19 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
20 |
|
21 |
-
define( 'WEBDADOS_FB_VERSION', '2.1.4' );
|
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.4.1
|
5 |
*/
|
6 |
/*
|
7 |
Plugin Name: Facebook Open Graph, Google+ and Twitter Card Tags
|
8 |
Plugin URI: http://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.4.1
|
12 |
Author: Webdados
|
13 |
Author URI: http://www.webdados.pt
|
14 |
Text Domain: wonderm00ns-simple-facebook-open-graph-tags
|
18 |
|
19 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
20 |
|
21 |
+
define( 'WEBDADOS_FB_VERSION', '2.1.4.1' );
|
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 );
|