Facebook Fanbox in XHTML Strict Page

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Kev
Forum Newbie
Posts: 21
Joined: Tue Aug 25, 2009 9:11 pm

Facebook Fanbox in XHTML Strict Page

Post 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.
User avatar
iankent
Forum Contributor
Posts: 333
Joined: Mon Nov 16, 2009 4:23 pm
Location: Wales, United Kingdom

Re: Facebook Fanbox in XHTML Strict Page

Post 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?
User avatar
Kev
Forum Newbie
Posts: 21
Joined: Tue Aug 25, 2009 9:11 pm

Re: Facebook Fanbox in XHTML Strict Page

Post 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>
User avatar
iankent
Forum Contributor
Posts: 333
Joined: Mon Nov 16, 2009 4:23 pm
Location: Wales, United Kingdom

Re: Facebook Fanbox in XHTML Strict Page

Post 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 :)
elizaara
Forum Newbie
Posts: 1
Joined: Mon Dec 21, 2009 11:07 pm

Re: Facebook Fanbox in XHTML Strict Page

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