Upcoming versions

Version 1.1 will feature an API for theme and plugin developers to access the Open Graph Protocol metadata to add “Like” buttons to their blogs and to use custom Object Types. Go to the download page and grab the Development Version if you want to try it!

Hi Chris, I’ll release an update of this plugin shortly with the Like button built in… Meanwhile if you’re putting this into your theme: you need the get_permalink() function. But that does not give you the correct link to like when you use the “Use metadata of the following page” feature of my plugin; for that you’ll need to wait for the next update or “steal” code from the wp_head() function in the plugin.

The biggest issue I face with inline video or audio is that it requires the actual video or audio file URL. Most users just embed Youtube/Vimeo/etc. players into their posts, but I haven’t figured out a good way to extract the media URL from that.

I would still like to add this as a feature. So if you have any ideas or insights you could share: please do!

Strictly speaking Open Graph Protocol metadata is not (X)HTML but RDFa.

So to pass the W3C Markup Validation Service you need to change your site’s doctype declaration. You will probably find this in your theme’s header.php file. Here’s a page describing what you need to do: http://rdfa.info/wiki/How-to-validate

Please note that there are still different doctypes for XHTML Transitional, (Strict) XHTML, etc. (even for HTML 4) in combination with RDFa.

Unfortunately there’s no way to have the plugin change this automagically as there is no filter for the doctype declaration. It’s hardcoded in all themes I know, including all “official” themes.

I believe something must have recently changed with Facebook because when posting before I was getting my featured image and title and description. I was using FetenWeb image_src Metatag. I installed yours as recommended by NicktheGeek from StudioPress, but I’m still having the same issue.

If you look at my most recent post you will see the OG code is all there.

You appear to be using a custom URL for the image. It’s www.30isthenew20.com/headshot.jpg but Facebook rejects that because it doesn’t start with either http:// or https:// – you should just prepend http:// and it’ll show.

Thank you and sorry for that oversight on my part. I’m always wondering if it can pull the description from my post instead of what appears to be a certain number of characters.

For example in my most recent post, if I post that URL to FB the description reads “Snowboarding is by far one of my biggest passions and when my trip to Big Sky, Montana fell through I had to scramble to make something happen. Thankfully the Internet exists and we have these things called Facebook and Twitter. Back in 2007 I met Esp…”

But my meta description which FB would use before this plugin is “There are a lot of resorts in the United States, but none offer a better value than the Epic Local Pass to Colorado.”

Is there a way to control this so I don’t get the random unfinished sentence with the …?

Links

Recent Posts

This blog is about Information Technology (technical) issues, tips and tricks I find worth sharing with the world. It’s also the home base for all of my open source projects. If you want to support me financially, please go to the Donations page. For moral support please leave a comment, or follow me on Twitter or Facebook: