Version Description
- Fix the fact that we are using
sanitize_textarea_field()
that only exists since 4.7.0 although we had a 4.0 minimum requirement (Thanks @l3lackcat) - Fix the textdomain on a couple of gettext calls
- Bumped the
Requires at least tag
to 4.5 (to encourage the ecosystem to have WordPress updated) - Added code snippet example for the
fb_og_image_additional
filter
Download this release
Release Info
Developer | webdados |
Plugin | Open Graph for Facebook, Google+ and Twitter Card Tags |
Version | 2.1.2 |
Comparing to | |
See all releases |
Code changes from version 2.1.1 to 2.1.2
- admin/class-webdados-fb-open-graph-admin.php +7 -2
- admin/options-page-3rdparty.php +1 -1
- admin/options-page-facebook.php +1 -1
- admin/options-page-general.php +1 -1
- admin/options-page-right.php +1 -1
- admin/options-page-schema.php +1 -1
- admin/options-page-seo.php +1 -1
- admin/options-page-twitter.php +1 -1
- admin/options-page.php +1 -1
- fbimg.php +1 -1
- includes/class-webdados-fb-open-graph.php +1 -1
- lang/wonderm00ns-simple-facebook-open-graph-tags.pot +8 -8
- public/class-webdados-fb-open-graph-public.php +6 -6
- readme.txt +13 -3
- wonderm00n-open-graph.php +3 -3
admin/class-webdados-fb-open-graph-admin.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1.
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -216,7 +216,12 @@ class Webdados_FB_Admin {
|
|
216 |
//Description
|
217 |
if ( isset($_POST['webdados_fb_open_graph_specific_description']) ) {
|
218 |
// Sanitize user input.
|
219 |
-
|
|
|
|
|
|
|
|
|
|
|
220 |
// Update the meta field in the database.
|
221 |
update_post_meta($post_id, '_webdados_fb_open_graph_specific_description', $mydata);
|
222 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
+
* @version 2.1.2
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
216 |
//Description
|
217 |
if ( isset($_POST['webdados_fb_open_graph_specific_description']) ) {
|
218 |
// Sanitize user input.
|
219 |
+
if ( get_bloginfo('version')>='4.7.0' ) { //sanitize_textarea_field only exists since 4.7.0
|
220 |
+
$mydata = trim( sanitize_textarea_field( $_POST['webdados_fb_open_graph_specific_description'] ) );
|
221 |
+
} else {
|
222 |
+
//Just in case...
|
223 |
+
$mydata = trim( sanitize_text_field( $_POST['webdados_fb_open_graph_specific_description'] ) );
|
224 |
+
}
|
225 |
// Update the meta field in the database.
|
226 |
update_post_meta($post_id, '_webdados_fb_open_graph_specific_description', $mydata);
|
227 |
}
|
admin/options-page-3rdparty.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1.
|
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.2
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
admin/options-page-facebook.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1.
|
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.2
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
admin/options-page-general.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1.
|
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.2
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
admin/options-page-right.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1.
|
5 |
*/
|
6 |
|
7 |
$out_link_utm='?utm_source=fb_og_wp_plugin_settings&utm_medium=link&utm_campaign=fb_og_wp_plugin';
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
+
* @version 2.1.2
|
5 |
*/
|
6 |
|
7 |
$out_link_utm='?utm_source=fb_og_wp_plugin_settings&utm_medium=link&utm_campaign=fb_og_wp_plugin';
|
admin/options-page-schema.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1.
|
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.2
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
admin/options-page-seo.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1.
|
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.2
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
admin/options-page-twitter.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1.
|
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.2
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
admin/options-page.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1.
|
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.2
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
fbimg.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1.
|
5 |
*/
|
6 |
define('WP_USE_THEMES', false);
|
7 |
require( '../../../wp-blog-header.php' );
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
+
* @version 2.1.2
|
5 |
*/
|
6 |
define('WP_USE_THEMES', false);
|
7 |
require( '../../../wp-blog-header.php' );
|
includes/class-webdados-fb-open-graph.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1.
|
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.2
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
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-09-
|
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:99
|
42 |
#: admin/class-webdados-fb-open-graph-admin.php:124
|
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:123
|
63 |
-
#: admin/class-webdados-fb-open-graph-admin.php:
|
64 |
msgid "Select image"
|
65 |
msgstr ""
|
66 |
|
@@ -78,23 +78,23 @@ msgid ""
|
|
78 |
"excerpt, if it exists, or from the content"
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: admin/class-webdados-fb-open-graph-admin.php:
|
82 |
msgid "URL failed:"
|
83 |
msgstr ""
|
84 |
|
85 |
-
#: admin/class-webdados-fb-open-graph-admin.php:
|
86 |
msgid "Facebook returned:"
|
87 |
msgstr ""
|
88 |
|
89 |
-
#: admin/class-webdados-fb-open-graph-admin.php:
|
90 |
msgid "Facebook Open Graph Tags cache updated/purged."
|
91 |
msgstr ""
|
92 |
|
93 |
-
#: admin/class-webdados-fb-open-graph-admin.php:
|
94 |
msgid "Share this on Facebook"
|
95 |
msgstr ""
|
96 |
|
97 |
-
#: admin/class-webdados-fb-open-graph-admin.php:
|
98 |
msgid "Error: Facebook Open Graph Tags cache NOT updated/purged."
|
99 |
msgstr ""
|
100 |
|
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-09-26 11:14+0100\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:99
|
42 |
#: admin/class-webdados-fb-open-graph-admin.php:124
|
43 |
+
#: admin/class-webdados-fb-open-graph-admin.php:291
|
44 |
msgid "Use this image"
|
45 |
msgstr ""
|
46 |
|
60 |
msgstr ""
|
61 |
|
62 |
#: admin/class-webdados-fb-open-graph-admin.php:123
|
63 |
+
#: admin/class-webdados-fb-open-graph-admin.php:290
|
64 |
msgid "Select image"
|
65 |
msgstr ""
|
66 |
|
78 |
"excerpt, if it exists, or from the content"
|
79 |
msgstr ""
|
80 |
|
81 |
+
#: admin/class-webdados-fb-open-graph-admin.php:236
|
82 |
msgid "URL failed:"
|
83 |
msgstr ""
|
84 |
|
85 |
+
#: admin/class-webdados-fb-open-graph-admin.php:244
|
86 |
msgid "Facebook returned:"
|
87 |
msgstr ""
|
88 |
|
89 |
+
#: admin/class-webdados-fb-open-graph-admin.php:258
|
90 |
msgid "Facebook Open Graph Tags cache updated/purged."
|
91 |
msgstr ""
|
92 |
|
93 |
+
#: admin/class-webdados-fb-open-graph-admin.php:258
|
94 |
msgid "Share this on Facebook"
|
95 |
msgstr ""
|
96 |
|
97 |
+
#: admin/class-webdados-fb-open-graph-admin.php:266
|
98 |
msgid "Error: Facebook Open Graph Tags cache NOT updated/purged."
|
99 |
msgstr ""
|
100 |
|
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 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -217,7 +217,7 @@ class Webdados_FB_Public {
|
|
217 |
$currency
|
218 |
);
|
219 |
$fb_additional_tags['name']['twitter_label1'] = array(
|
220 |
-
__('Price', '
|
221 |
);
|
222 |
if ( function_exists('get_woocommerce_currency') ) $fb_additional_tags['name']['twitter_data1'] = array(
|
223 |
$price.' '.get_woocommerce_currency()
|
@@ -287,7 +287,7 @@ class Webdados_FB_Public {
|
|
287 |
}
|
288 |
} else {
|
289 |
if ( is_search() ) {
|
290 |
-
$fb_title = esc_attr( wp_strip_all_tags( stripslashes( __('Search for', '
|
291 |
$fb_url = get_search_link();
|
292 |
} else {
|
293 |
if (is_author()) {
|
@@ -296,15 +296,15 @@ class Webdados_FB_Public {
|
|
296 |
} else {
|
297 |
if ( is_archive() ) {
|
298 |
if ( is_day() ) {
|
299 |
-
$fb_title = esc_attr( wp_strip_all_tags( stripslashes( get_query_var( 'day' ) . ' ' .single_month_title( ' ', false ) . ' ' . __( 'Archives', '
|
300 |
$fb_url = get_day_link( get_query_var( 'year' ), get_query_var( 'monthnum' ), get_query_var( 'day' ) );
|
301 |
} else {
|
302 |
if ( is_month() ) {
|
303 |
-
$fb_title = esc_attr( wp_strip_all_tags( stripslashes( single_month_title( ' ', false ) . ' ' . __( 'Archives', '
|
304 |
$fb_url = get_month_link( get_query_var( 'year' ), get_query_var( 'monthnum' ) );
|
305 |
} else {
|
306 |
if ( is_year() ) {
|
307 |
-
$fb_title = esc_attr( wp_strip_all_tags( stripslashes( get_query_var( 'year' ) . ' ' . __( 'Archives', '
|
308 |
$fb_url = get_year_link( get_query_var( 'year' ) );
|
309 |
}
|
310 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
+
* @version 2.1.2
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
217 |
$currency
|
218 |
);
|
219 |
$fb_additional_tags['name']['twitter_label1'] = array(
|
220 |
+
__('Price', 'wonderm00ns-simple-facebook-open-graph-tags')
|
221 |
);
|
222 |
if ( function_exists('get_woocommerce_currency') ) $fb_additional_tags['name']['twitter_data1'] = array(
|
223 |
$price.' '.get_woocommerce_currency()
|
287 |
}
|
288 |
} else {
|
289 |
if ( is_search() ) {
|
290 |
+
$fb_title = esc_attr( wp_strip_all_tags( stripslashes( __('Search for', 'wonderm00ns-simple-facebook-open-graph-tags').' "'.get_search_query().'"' ), true ) );
|
291 |
$fb_url = get_search_link();
|
292 |
} else {
|
293 |
if (is_author()) {
|
296 |
} else {
|
297 |
if ( is_archive() ) {
|
298 |
if ( is_day() ) {
|
299 |
+
$fb_title = esc_attr( wp_strip_all_tags( stripslashes( get_query_var( 'day' ) . ' ' .single_month_title( ' ', false ) . ' ' . __( 'Archives', 'wonderm00ns-simple-facebook-open-graph-tags' ) ), true ) );
|
300 |
$fb_url = get_day_link( get_query_var( 'year' ), get_query_var( 'monthnum' ), get_query_var( 'day' ) );
|
301 |
} else {
|
302 |
if ( is_month() ) {
|
303 |
+
$fb_title = esc_attr( wp_strip_all_tags( stripslashes( single_month_title( ' ', false ) . ' ' . __( 'Archives', 'wonderm00ns-simple-facebook-open-graph-tags' ) ), true ) );
|
304 |
$fb_url = get_month_link( get_query_var( 'year' ), get_query_var( 'monthnum' ) );
|
305 |
} else {
|
306 |
if ( is_year() ) {
|
307 |
+
$fb_title = esc_attr( wp_strip_all_tags( stripslashes( get_query_var( 'year' ) . ' ' . __( 'Archives', 'wonderm00ns-simple-facebook-open-graph-tags' ) ), true ) );
|
308 |
$fb_url = get_year_link( get_query_var( 'year' ) );
|
309 |
}
|
310 |
}
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: webdados, wonderm00n
|
3 |
Donate link: http://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.
|
6 |
Tested up to: 4.7.3
|
7 |
-
Stable tag: 2.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 ==
|
@@ -102,7 +102,7 @@ We like to work with everybody, so (if you want to) our plugin can even integrat
|
|
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 (
|
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 `Fetch new scrape information` 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 |
|
@@ -111,6 +111,10 @@ Sometimes the plugin just can't update the Facebook cache itself and you may nee
|
|
111 |
If there's a popular plugin you think we could get content from to use on the meta tags, use the support forum to tell us that.
|
112 |
If you are a plugin or theme author you can always use our filters `fb_og_title`, `fb_og_desc`, `fb_og_url`, `fb_og_type`, `fb_type_schema`, `fb_og_image`, `fb_og_image_additional`, `fb_og_image_overlay`, `fb_og_locale`, `fb_og_app_id`, `fb_og_thumb_fill_color`, `fb_og_output` and `fb_og_enabled` to customize the Open Graph (and other) meta tags output.
|
113 |
|
|
|
|
|
|
|
|
|
114 |
= There's a similar plugin on the repository, by Heateor. Is this the same? =
|
115 |
It's similar, yes. They've forked our plugin and gave no credits whatsoever for our original work.
|
116 |
|
@@ -122,6 +126,12 @@ We DO NOT provide email support for this plugin. If you send us an email asking
|
|
122 |
|
123 |
== Changelog ==
|
124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
= 2.1.1 =
|
126 |
* Fix on the gettext calls and textdomain so that Glotpress correctly loads translations
|
127 |
|
2 |
Contributors: webdados, wonderm00n
|
3 |
Donate link: http://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.7.3
|
7 |
+
Stable tag: 2.1.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 ==
|
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 `Fetch new scrape information` 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 |
|
111 |
If there's a popular plugin you think we could get content from to use on the meta tags, use the support forum to tell us that.
|
112 |
If you are a plugin or theme author you can always use our filters `fb_og_title`, `fb_og_desc`, `fb_og_url`, `fb_og_type`, `fb_type_schema`, `fb_og_image`, `fb_og_image_additional`, `fb_og_image_overlay`, `fb_og_locale`, `fb_og_app_id`, `fb_og_thumb_fill_color`, `fb_og_output` and `fb_og_enabled` to customize the Open Graph (and other) meta tags output.
|
113 |
|
114 |
+
= What is the array structure for the `fb_og_image_additional` filter?
|
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 |
|
126 |
|
127 |
== Changelog ==
|
128 |
|
129 |
+
= 2.1.2 =
|
130 |
+
* Fix the fact that we are using `sanitize_textarea_field()` that only exists since 4.7.0 although we had a 4.0 minimum requirement (Thanks @l3lackcat)
|
131 |
+
* Fix the textdomain on a couple of gettext calls
|
132 |
+
* Bumped the `Requires at least tag` to 4.5 (to encourage the ecosystem to have WordPress updated)
|
133 |
+
* Added code snippet example for the `fb_og_image_additional` filter
|
134 |
+
|
135 |
= 2.1.1 =
|
136 |
* Fix on the gettext calls and textdomain so that Glotpress correctly loads translations
|
137 |
|
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.
|
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.
|
12 |
Author: Webdados
|
13 |
Author URI: http://www.webdados.pt
|
14 |
Text Domain: wonderm00ns-simple-facebook-open-graph-tags
|
@@ -17,7 +17,7 @@ Domain Path: /lang
|
|
17 |
|
18 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
19 |
|
20 |
-
define( 'WEBDADOS_FB_VERSION', '2.1.
|
21 |
define( 'WEBDADOS_FB_PLUGIN_NAME', 'Facebook Open Graph, Google+ and Twitter Card Tags' );
|
22 |
define( 'WEBDADOS_FB_W', 1200 );
|
23 |
define( 'WEBDADOS_FB_H', 630 );
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
+
* @version 2.1.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.2
|
12 |
Author: Webdados
|
13 |
Author URI: http://www.webdados.pt
|
14 |
Text Domain: wonderm00ns-simple-facebook-open-graph-tags
|
17 |
|
18 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
19 |
|
20 |
+
define( 'WEBDADOS_FB_VERSION', '2.1.2' );
|
21 |
define( 'WEBDADOS_FB_PLUGIN_NAME', 'Facebook Open Graph, Google+ and Twitter Card Tags' );
|
22 |
define( 'WEBDADOS_FB_W', 1200 );
|
23 |
define( 'WEBDADOS_FB_H', 630 );
|