Version Description
- Added a "Manually update Facebook cache" button to the "Post updated" notice
- Improved the FAQ
Download this release
Release Info
Developer | webdados |
Plugin | Open Graph for Facebook, Google+ and Twitter Card Tags |
Version | 2.1.4.2 |
Comparing to | |
See all releases |
Code changes from version 2.1.4.1 to 2.1.4.2
admin/class-webdados-fb-open-graph-admin.php
CHANGED
@@ -340,6 +340,26 @@ class Webdados_FB_Admin {
|
|
340 |
unset($_SESSION['wd_fb_og_updated_error_message']);*/
|
341 |
}
|
342 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
343 |
/* Options page */
|
344 |
public function options_page() {
|
345 |
$options = $this->options;
|
340 |
unset($_SESSION['wd_fb_og_updated_error_message']);*/
|
341 |
}
|
342 |
|
343 |
+
/* Manually update cache link */
|
344 |
+
public function post_updated_messages( $messages ) {
|
345 |
+
global $post;
|
346 |
+
|
347 |
+
if ( $post && is_array($messages) ) {
|
348 |
+
if (
|
349 |
+
( !isset($_GET['wd_fb_og_status']) )
|
350 |
+
||
|
351 |
+
( isset($_GET['wd_fb_og_status']) && intval($_GET['wd_fb_og_status'])!=1 )
|
352 |
+
) {
|
353 |
+
foreach ( $messages as $type => $messages1 ) {
|
354 |
+
if ( isset($messages1[1]) ) { //Post updated
|
355 |
+
$messages[$type][1].=' <a class="button button-small" style="margin: 0px 1em;" href="'.esc_url( 'https://developers.facebook.com/tools/debug/sharing/?q='.urlencode(get_permalink($post->ID)) ).'" target="_blank">'.__( 'Manually update Facebook cache', '' ).'</a>';
|
356 |
+
}
|
357 |
+
}
|
358 |
+
}
|
359 |
+
}
|
360 |
+
return $messages;
|
361 |
+
}
|
362 |
+
|
363 |
/* Options page */
|
364 |
public function options_page() {
|
365 |
$options = $this->options;
|
includes/class-webdados-fb-open-graph.php
CHANGED
@@ -228,7 +228,10 @@ class Webdados_FB {
|
|
228 |
// Add metabox to posts
|
229 |
add_action( 'add_meta_boxes', array( $plugin_admin, 'add_meta_boxes' ) );
|
230 |
add_action( 'save_post', array( $plugin_admin, 'save_meta_boxes' ) );
|
|
|
231 |
add_action( 'admin_notices', array( $plugin_admin, 'admin_notices' ) );
|
|
|
|
|
232 |
// Session start so we can know if the cache was cleared on Facebook
|
233 |
//if(!session_id())
|
234 |
//@session_start(); //We use @ because some other plugin could previously sent something to the browser
|
228 |
// Add metabox to posts
|
229 |
add_action( 'add_meta_boxes', array( $plugin_admin, 'add_meta_boxes' ) );
|
230 |
add_action( 'save_post', array( $plugin_admin, 'save_meta_boxes' ) );
|
231 |
+
// Admin notices
|
232 |
add_action( 'admin_notices', array( $plugin_admin, 'admin_notices' ) );
|
233 |
+
// Admin link to manually update cache
|
234 |
+
add_action( 'post_updated_messages', array( $plugin_admin, 'post_updated_messages' ) );
|
235 |
// Session start so we can know if the cache was cleared on Facebook
|
236 |
//if(!session_id())
|
237 |
//@session_start(); //We use @ because some other plugin could previously sent something to the browser
|
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:
|
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 |
|
@@ -121,6 +121,10 @@ 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 ""
|
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"
|
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 |
|
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 |
|
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 |
+
|
128 |
#: admin/options-page-3rdparty.php:13
|
129 |
msgid "Settings for 3rd party integration with other plugins."
|
130 |
msgstr ""
|
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 ==
|
@@ -97,13 +97,17 @@ We like to work with everybody, so (if you want to) our plugin can even integrat
|
|
97 |
|
98 |
1. Are you using a big enough image? The minimum image size is 200x200 pixels but we recommend 1200x630.
|
99 |
2. Are you sure you only have one `og:image` tag on the source code? Make sure you're not using more than one plugin to set OG tags?
|
100 |
-
3. Go to the [Facebook Sharing Debugger](https://developers.facebook.com/tools/debug/), insert your URL, click `Debug`. Then click on `Scrape
|
|
|
|
|
|
|
|
|
101 |
|
102 |
= When I save/edit my post I get the "Facebook Open Graph Tags cache NOT updated/purged" error. Should I worry? =
|
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
|
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"? =
|
@@ -132,6 +136,10 @@ We DO NOT provide email support for this plugin. If you send us an email asking
|
|
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
|
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.2
|
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 ==
|
97 |
|
98 |
1. Are you using a big enough image? The minimum image size is 200x200 pixels but we recommend 1200x630.
|
99 |
2. Are you sure you only have one `og:image` tag on the source code? Make sure you're not using more than one plugin to set OG tags?
|
100 |
+
3. Go to the [Facebook Sharing Debugger](https://developers.facebook.com/tools/debug/), insert your URL, click `Debug`. Then click on `Scrape Again` to make sure Facebook gets the current version of your HTML code and not a cached version. If the image that shows up on the preview (bottom of the page) is the correct one, then the tags are well set and it "should" be the one that Facebook uses when sharing the post. If it still does not use the correct image when sharing, despite the debugger shows it correctly, there's nothing more we can do about that. That's just Facebook being Facebook.
|
101 |
+
|
102 |
+
= What is the "Manually update Facebook cache" button on the "Post updated" notice? =
|
103 |
+
|
104 |
+
It's a shortcut to the Facebook Sharing Debugger, where you should click on `Scrape Again` to make sure Facebook gets the current version of your post or page.
|
105 |
|
106 |
= When I save/edit my post I get the "Facebook Open Graph Tags cache NOT updated/purged" error. Should I worry? =
|
107 |
|
108 |
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.
|
109 |
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).
|
110 |
+
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.
|
111 |
Sometimes the plugin just can't update the Facebook cache itself and you may need to do it manually on the link provided above.
|
112 |
|
113 |
= Can this plugin get content from "random plugin"? =
|
136 |
|
137 |
== Changelog ==
|
138 |
|
139 |
+
= 2.1.4.2 =
|
140 |
+
* Added a "Manually update Facebook cache" button to the "Post updated" notice
|
141 |
+
* Improved the FAQ
|
142 |
+
|
143 |
= 2.1.4.1 =
|
144 |
* 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
|
145 |
* Improved the FAQ
|
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.2
|
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.2
|
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.2' );
|
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 );
|