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

Version Description

  • Fixed a typo
  • Added the information about the recommended minimum image size
Download this release

Release Info

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

Code changes from version 0.5 to 0.5.1

includes/settings-page.php CHANGED
@@ -204,7 +204,7 @@
204
  <td>
205
  <input type="checkbox" name="fb_url_canonical" id="fb_url_canonical" value="1" <?php echo (intval($fb_url_canonical)==1 ? ' checked="checked"' : ''); ?>/>
206
  <br/>
207
- <i>&lt;link rel="canonical" href="http://novo.opticapita.pt"/&gt;</i>
208
  </td>
209
  </tr>
210
  <tr class="fb_url_options">
@@ -293,6 +293,8 @@
293
  <th scope="row" nowrap="nowrap">Include Image (og:image) tag?</th>
294
  <td>
295
  <input type="checkbox" name="fb_image_show" id="fb_image_show" value="1" <?php echo (intval($fb_image_show)==1 ? ' checked="checked"' : ''); ?> onclick="showImageOptions();"/>
 
 
296
  </td>
297
  </tr>
298
  <tr class="fb_image_options">
@@ -327,18 +329,19 @@
327
  <td>
328
  <div>
329
  1) <input type="checkbox" name="fb_image_use_featured" id="fb_image_use_featured" value="1" <?php echo (intval($fb_image_use_featured)==1 ? ' checked="checked"' : ''); ?>/>
330
- Image will be fetched from post/page featured/thumbnail picture.</div>
 
331
  <div>
332
  2) <input type="checkbox" name="fb_image_use_content" id="fb_image_use_content" value="1" <?php echo (intval($fb_image_use_content)==1 ? ' checked="checked"' : ''); ?>/>
333
- If it doesn't exist, use the first image from the post/page content.
334
  </div>
335
  <div>
336
  3) <input type="checkbox" name="fb_image_use_media" id="fb_image_use_media" value="1" <?php echo (intval($fb_image_use_media)==1 ? ' checked="checked"' : ''); ?>/>
337
- If it doesn't exist, use first image from the post/page media gallery.
338
  </div>
339
  <div>
340
  4) <input type="checkbox" name="fb_image_use_default" id="fb_image_use_default" value="1" <?php echo (intval($fb_image_use_default)==1 ? ' checked="checked"' : ''); ?>/>
341
- If it doesn't exist, use the default image above.
342
  </div>
343
  </td>
344
  </tr>
204
  <td>
205
  <input type="checkbox" name="fb_url_canonical" id="fb_url_canonical" value="1" <?php echo (intval($fb_url_canonical)==1 ? ' checked="checked"' : ''); ?>/>
206
  <br/>
207
+ <i>&lt;link rel="canonical" href="..."/&gt;</i>
208
  </td>
209
  </tr>
210
  <tr class="fb_url_options">
293
  <th scope="row" nowrap="nowrap">Include Image (og:image) tag?</th>
294
  <td>
295
  <input type="checkbox" name="fb_image_show" id="fb_image_show" value="1" <?php echo (intval($fb_image_show)==1 ? ' checked="checked"' : ''); ?> onclick="showImageOptions();"/>
296
+ <br/>
297
+ It's HIGHLY recommended that all images have at least 200px on both dimensions in order to Facebook to properly load them
298
  </td>
299
  </tr>
300
  <tr class="fb_image_options">
329
  <td>
330
  <div>
331
  1) <input type="checkbox" name="fb_image_use_featured" id="fb_image_use_featured" value="1" <?php echo (intval($fb_image_use_featured)==1 ? ' checked="checked"' : ''); ?>/>
332
+ Image will be fetched from post/page featured/thumbnail picture
333
+ </div>
334
  <div>
335
  2) <input type="checkbox" name="fb_image_use_content" id="fb_image_use_content" value="1" <?php echo (intval($fb_image_use_content)==1 ? ' checked="checked"' : ''); ?>/>
336
+ If it doesn't exist, use the first image from the post/page content
337
  </div>
338
  <div>
339
  3) <input type="checkbox" name="fb_image_use_media" id="fb_image_use_media" value="1" <?php echo (intval($fb_image_use_media)==1 ? ' checked="checked"' : ''); ?>/>
340
+ If it doesn't exist, use first image from the post/page media gallery
341
  </div>
342
  <div>
343
  4) <input type="checkbox" name="fb_image_use_default" id="fb_image_use_default" value="1" <?php echo (intval($fb_image_use_default)==1 ? ' checked="checked"' : ''); ?>/>
344
+ If it doesn't exist, use the default image above
345
  </div>
346
  </td>
347
  </tr>
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, seo, share, social, meta
5
  Requires at least: 3
6
  Tested up to: 3.5.1
7
- Stable tag: 0.5
8
 
9
  This plugin inserts Facebook Open Graph Tags into your WordPress Blog/Website for more effective Facebook sharing results.
10
  It also allows you to add the Meta Description tag and Schema.org Name, Description and Image tags for more effective Google+ sharing results.
@@ -50,6 +50,11 @@ Other Tags:
50
 
51
  == Changelog ==
52
 
 
 
 
 
 
53
  = 0.5 =
54
 
55
  * Added meta description and Schema.org name, description and image tags.
4
  Tags: facebook, open graph, seo, share, social, meta
5
  Requires at least: 3
6
  Tested up to: 3.5.1
7
+ Stable tag: 0.5.1
8
 
9
  This plugin inserts Facebook Open Graph Tags into your WordPress Blog/Website for more effective Facebook sharing results.
10
  It also allows you to add the Meta Description tag and Schema.org Name, Description and Image tags for more effective Google+ sharing results.
50
 
51
  == Changelog ==
52
 
53
+ = 0.5.1 =
54
+
55
+ * Fixed a typo
56
+ * Added the information about the recommended minimum image size
57
+
58
  = 0.5 =
59
 
60
  * Added meta description and Schema.org name, description and image tags.
wonderm00n-open-graph.php CHANGED
@@ -1,18 +1,18 @@
1
  <?php
2
  /**
3
  * @package Wonderm00n's Simple Facebook Open Graph Meta Tags
4
- * @version 0.5
5
  */
6
  /*
7
  Plugin Name: Wonderm00n's Simple Facebook Open Graph Meta Tags
8
  Plugin URI: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-facebook-open-graph-tags/
9
  Description: This plugin inserts Facebook Open Graph Tags into your WordPress Blog/Website for more effective Facebook sharing results. It also allows you to add the Meta Description tag and Schema.org Name, Description and Image tags for more effective Google+ 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
  Author: Marco Almeida (Wonderm00n)
11
- Version: 0.5
12
  Author URI: http://wonderm00n.com
13
  */
14
 
15
- $wonderm00n_open_graph_plugin_version='0.5';
16
  $wonderm00n_open_graph_plugin_settings=array(
17
  'fb_app_id_show',
18
  'fb_app_id',
1
  <?php
2
  /**
3
  * @package Wonderm00n's Simple Facebook Open Graph Meta Tags
4
+ * @version 0.5.1
5
  */
6
  /*
7
  Plugin Name: Wonderm00n's Simple Facebook Open Graph Meta Tags
8
  Plugin URI: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-facebook-open-graph-tags/
9
  Description: This plugin inserts Facebook Open Graph Tags into your WordPress Blog/Website for more effective Facebook sharing results. It also allows you to add the Meta Description tag and Schema.org Name, Description and Image tags for more effective Google+ 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
  Author: Marco Almeida (Wonderm00n)
11
+ Version: 0.5.1
12
  Author URI: http://wonderm00n.com
13
  */
14
 
15
+ $wonderm00n_open_graph_plugin_version='0.5.1';
16
  $wonderm00n_open_graph_plugin_settings=array(
17
  'fb_app_id_show',
18
  'fb_app_id',