Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-08-24 17:38:25

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,254
Website GitHub Mastodon Twitter

facebook plugin validation

Did anybody manage to validate facebook’s like plugin?

The code I get is

<iframe src="http://www.facebook.com/plugins/likebox.php?id=1234&amp;width=292&amp;connections=10&amp;stream=true&amp;header=true&amp;height=587" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:587px;" allowTransparency="true"></iframe> and it totally breaks the validation.

Any ideas?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 2010-08-24 17:59:19

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: facebook plugin validation

That depends on your doctype. If you are using HTML4 or XHTML in strict mode then, yes, it does break the validation. That’s because the extra frame attributes do not exists in strict mode, just in framesets and transitional. Either just remove the frame attributes (expect for the valid ones), change your doctype or don’t care about it.

Offline

#3 2010-08-24 18:12:54

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: facebook plugin validation

I switched to XHTML 1.0 Transitional


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#4 2010-08-25 11:09:41

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,254
Website GitHub Mastodon Twitter

Re: facebook plugin validation

thanks guys transitional it will be then:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2010-08-25 11:28:22

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: facebook plugin validation

I’ve used the FBML method on my site as I did not want an iFrame on the page at all, and that pretty much breaks any validation due to the <fb:> tags.

It seems Facebook don’t care much about web standards. Works fine though!

Offline

#6 2010-08-25 14:13:09

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: facebook plugin validation

philwareham wrote:

I’ve used the FBML method on my site as I did not want an iFrame on the page at all, and that pretty much breaks any validation due to the <fb:> tags.

The fb:tag-method also uses iframe. The only difference is that it’s placed to the page with JavaScript to the position you placed the fb tag.

For example, from the Lovethegarden.com’s resulting source:

<fb:like class=" fb_edge_widget_with_comment fb_iframe_widget" href="http://www.lovethegarden.com/blog/blooming-marvellous" layout="button_count" show_faces="false" width="100" font="verdana"><span><iframe src="http://www.facebook.com/plugins/like.php?api_key=139717392725225&amp;channel_url=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%23cb%3Df1f1a77e9034fda%26origin%3Dhttp%253A%252F%252Fwww.lovethegarden.com%252Ff91dc9b28279ba%26relation%3Dparent.parent%26transport%3Dpostmessage&amp;font=verdana&amp;href=http%3A%2F%2Fwww.lovethegarden.com%2Fblog%2Fblooming-marvellous&amp;layout=button_count&amp;locale=en_US&amp;node_type=link&amp;sdk=joey&amp;show_faces=false&amp;width=100" class="fb_ltr" style="border: medium none; overflow: hidden; height: 20px; width: 100px;" name="f288a3e61e9437c" id="f136ecdea8458d"></iframe></span></fb:like>

Last edited by Gocom (2010-08-25 14:16:39)

Offline

Board footer

Powered by FluxBB