Page 1 of 1

Facebook Fanbox in XHTML Strict Page

Posted: Tue Nov 24, 2009 4:28 pm
by Kev
Hi guys..

My wordpress blog is XHTML Strict (no errors). And I want to add the Facebook Fanbox to it, but the code for the fanbox is invalid (no way to make it valid either).

I want to embed the Facebook fanbox anyway, but wasn't sure what the consequences were (if any) of having that portion of my pages be invalid per my XHTML Strict doctype? What's the worst that could happen?

Thanks for your advice.

Re: Facebook Fanbox in XHTML Strict Page

Posted: Tue Nov 24, 2009 5:11 pm
by iankent
The worst that can happen is your page breaks and something doesn't display correctly. If it's not XHTML Strict compliant but uses the XHTML Strict doctype, you can't be certain that it will look or behave the same across all browsers implementing that standard.

Other than that, not a lot really lol. Is there any reason it can't be converted to XHTML strict?

Re: Facebook Fanbox in XHTML Strict Page

Posted: Tue Nov 24, 2009 8:19 pm
by Kev
Thanks for the reply iankent. I guess I won't worry about it.

Here is the offending XHTML, if you can even call it that:

Code: Select all

<fb:fan profile_id="XXXXXXXXXXX" stream="" connections="10" width="300"></fb:fan>

Re: Facebook Fanbox in XHTML Strict Page

Posted: Thu Nov 26, 2009 7:00 am
by iankent
That isn't XHTML, its a FBAPI tag.It instructs Facebook to output the correct XHTML. Its their way of preventing XSS attacks etc.

You may find that when its output it is XHTML Strict compliant (check the source of the HTML returned by Facebook), but as long as it works it really doesn't matter, just make sure you test it all in a few different browsers :)

Re: Facebook Fanbox in XHTML Strict Page

Posted: Wed Dec 23, 2009 4:20 am
by elizaara
How long has it taken for Facebook Support to answer? So how long has it usually taken? Has anyone any experiences? I can't log in to my account since my email address is no longer registered according to Facebook and I've sent messages to Facebook support but haven't got any answer yet. I would like to know how long can it take for Facebook to correct the situation or at least answer me what I should do? Has anyone received an answer? How long did it take?
_______________________
market samurai ~ marketsamurai ~ marketsamurai.com