View Full Version : Resolved Facebook, the OpenGraph Protocol & (in)Valid HTML

May 10th, 2010, 02:01 PM

Out of now where, in about the last month, the OpenGraph Protocol has been developed by Facebook and others. It is used in support of the Facebook like widget.

Unfortunately the OpenGraph Protocol and all the software I've seen that supports the OpenGraph Protocol requires the use of invalid meta tags, such as:

<meta property="og:email" content="[email protected]" />

The invalid part being that the meta tag has no property attribute. In place of property, it should use the name attribute.

I think use of the OpenGraph Protocol is likely to spread like wildfire. There is already a wordpress plugin.

Is anyone here willing to work with me in contacting those involved, and asking them very politely, to modify the OpenGraph Protocol, or at least the supporing software, so that it will work with valid (x)HTML?

For background on the FaceBook like widget see: http://developers.facebook.com/docs/opengraph
For background on the OpenGraph Protocol, including all the implementations, see: http://opengraphprotocol.org/

Apart from the backers of the OpenGraph Protocol itself, the implementors should also be contacted.

A suitable message to an implementor might go along the lines of:
- - - - - - 8< - - - - - -
Could you please modify your OpenGraph implementation so that it will work with pages written in valid HTML.

An example of such a page using valid meta tags with OpenGraph data is available at: http://www.html-tags-guide.com/
- - - - - - 8< - - - - - -


May 10th, 2010, 10:30 PM
Can meta take property in the current HTML5 draft?

May 11th, 2010, 02:26 AM
Thanks to a swift reply from one of the implementers of software to parse OpenGraph metadata, I've realised that OpenGraph is based on RDFa and that RDFa can be used in HTML4.01 Transitional by using a DTD & Doctype developed for the purpose:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa-1.dtd">

If you know anyone involved with the http://opengraphprotocol.org/ website, you might suggest to them that providing advice on this on their website might save others from chasing down rabbit holes that I've been doing for the past 24 hours.