HTML5 vs XFBML? On an HTML5 page?

Sounds like a dumb question, but ...

I am adding a Facebook Javascript SDK to a site that seems to be in HTML5, it has
<!doctype html> and a <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> , so I assume that these were the original intentions of the authors.

However, looking at Google Analytics for a site, there may be quite a few people using IE8 to visit the site.

We do not want to use iFrames because the XFBML and HTML5 versions are more universal.

That is why I am asking if I should use HTML5 or XFBML for this page?

+7
source share
2 answers

If your page is html5, then some browsers will not be supported, if you want all browsers to not support html5, it's simple.

With that said, I don't think it matters much which option you go with, and that is because in both cases you upload the same facebook javascript sdk, which then displays the plugin where the placeholder is placed. The only difference between the two versions is how you define the plugin parameters in this placeholder, in html5 you use data attributes, and in the xfbml version you just define the facebook namespace and use custom attributes. But both versions should work for all browsers supported by facebook, most of which you will get is invalid html in some browsers if you take the html5 version, but it should work anyway.

+3
source

You should use XFBML because I see that you get more IE users in your Google Analytics service, so I assume that ignoring all these users is difficult.

-one
source

All Articles