W3C home > Mailing lists > Public > www-validator@w3.org > August 2011

Re: facebook & google plugins

From: Etienne Miret <etienne.miret@ens-lyon.org>
Date: Sat, 20 Aug 2011 17:23:07 +0200
Cc: www-validator@w3.org
Message-Id: <C95A3C48-202A-4DC2-8957-A965937FB094@ens-lyon.org>
To: Craig Chant <dmo@dance-music.org>
Hello Craig,

After some digging and hacking, I found this:

* Standard Facebook button with faces:
<object data="http://www.facebook.com/plugins/like.php?href=YOUR_URL"
        style="border:none; width:450px; height:80px"></object>

* Standard Facebook button without faces:
<object data="http://www.facebook.com/plugins/like.php?href=YOUR_URL&amp;show_faces=false"
        style="border:none; width:450px; height:35px"></object>

* Small Facebook button:
<object data="http://www.facebook.com/plugins/like.php?href=YOUR_URL&amp;layout=button_count"
        style="border:none; width:150px; height:20px"></object>

* Standard Google +1 without count:
<object data="https://plusone.google.com/u/0/_/+1/fastbutton?url=YOUR_URL&amp;size=standard&amp;count=false&amp;hl=en-US"
        style="border:none; width:38px; height:24px;"></object>

* Standard Google +1 with count:
<object data="https://plusone.google.com/u/0/_/+1/fastbutton?url=YOUR_URL&amp;size=standard&amp;count=true&amp;hl=en-US"
        style="border:none; width:106px; height:24px;"></object>

Hopefully, with those examples you’ll be able to do what you want. They're all valid HTML4/XHTML1 Strict.

Note that the above code for Google +1 isn’t officially supported by Google and thus may break at any time. The Facebook code should be fine, since it doesn’t differ much from the Facebook-supported <iframe> Like buttons.

If anyone wants to post this code somewhere, feel free to do so but please quote my name.

Regards,

Etienne Miret


Le 17 août 2011 à 19:12, Craig Chant a écrit :

> Hello Etienne,
> 
> Thanks for the reply, however that still doesn't work.
> 
> My pages are X/HTML 1.0 Strict , not HTML5!
> 
> Do you have any X/HTML mark-up that will validate?
> 
> Regards,
> 
> Craig.

-- 
Etienne Miret
Received on Saturday, 20 August 2011 15:23:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:48 GMT