Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder mbaker's Avatar
    Join Date
    Jan 2010
    Location
    Burford, Oxfordshire, United Kingdom
    Posts
    249
    Thanks
    1
    Thanked 39 Times in 39 Posts

    Facebook, the OpenGraph Protocol & (in)Valid HTML

    Hi,

    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="me@example.com" />

    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< - - - - - -

    Michael.
    Last edited by mbaker; 05-11-2010 at 02:21 AM.
    - Michael Baker - HTML Tags Guide - Reference and Tutorials
    - Like voting, validate early, validate often - W3C HTML Validator - W3C CSS Validator
    - Wot? me cynical? no, its just if you vote, er, validate early, you have more chance of validating often.

  • #2
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Can meta take property in the current HTML5 draft?

  • #3
    Regular Coder mbaker's Avatar
    Join Date
    Jan 2010
    Location
    Burford, Oxfordshire, United Kingdom
    Posts
    249
    Thanks
    1
    Thanked 39 Times in 39 Posts
    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.

    Michael.
    Last edited by mbaker; 05-11-2010 at 02:37 AM.
    - Michael Baker - HTML Tags Guide - Reference and Tutorials
    - Like voting, validate early, validate often - W3C HTML Validator - W3C CSS Validator
    - Wot? me cynical? no, its just if you vote, er, validate early, you have more chance of validating often.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •