Skip to content
This repository

WordPress Plugin that adds Open Graph Protocol Metadata to your blog. To download a copy, click "Download Source" and choose the zip file. Unzip, and place the resulting folder in your WordPress installation under wp-content/plugins/

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 default.png
Octocat-spinner-32 open-graph-protocol-tools.php
Octocat-spinner-32 readme.md
Octocat-spinner-32 sample_code.txt
readme.md

=== Plugin Name ===
Contributors: artlung,pathawks
Donate link: http://joecrawford.com/plugin-donation
Tags: metadata, opengraphprotocol, facebook
Requires at least: 2.9
Tested up to: 3.6
Stable tag: 1.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Adds Open Graph Protocol meta to the individual pages and posts of your WordPress Install.

== Description ==

Adds Open Graph Protocol meta tags to individual content pages of your WordPress install. Works in coordination with "Like" buttons and "share" inside Facebook and other consumers of OGP metadata.

== Installation ==

  1. Upload open-graph-protocol-tools/ to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. To add the "Like" module, use this code:
<?php
/**
 * Include this code on your theme for single blog posts (for example, in your single.php file)
 * or on your blogs main page to include a Facebook "Like" iframe
 */
if (function_exists('the_opengraphprotocoltools_like_code')):
   the_opengraphprotocoltools_like_code();
else:
    echo "<!-- opengraphprotocoltools is not activated -->";
endif;
?>

It would be best if in your theme you also added an attribute in the <html> tag, like this: <html prefix="og: http://ogp.me/ns#">

== Frequently Asked Questions ==

= Is there a FAQ? =

I've gotten some bug reports via GitHub, you can report bugs or make comments there.

= For more information about Open Graph Protocol =

Visit Open Graph Protocol.

== Screenshots ==

None.

== Changelog ==

= 1 =

  • First version.

= 1.2 =

  • Changed instructions, fixes encoding errors for non-English content.

= 1.3 =

  • Improve issue with home vs front page

= 1.6 =

  • Improvements by pathawks to accomodate more types
  • Address double encoding issue with wptexturize modified values
Something went wrong with that request. Please try again.