I’m putting the facebook LikeBox plugin on a webpage i’m working on.
it’s built on HTML & CSS & JavaScript.
I wanted to know which code would be the best to use since there are three options…for example, for less load time.
HTML5 or XFBML or IFRAME?
i would really appreciate it if anyone can Please refer me your suggestions. thank you.
They are using JavaScript to parse XFBML/HTML5 and convert them to iframe.
So if you are just showing plugins, any of them work, but HTML5 and XFBML give you more options.
For instance, iframe version of Like Button doesn’t provide you an option to display “Send” button, but HTML5 and XFBML do.
And HTML5/XFBML versions give you a chance to set callback functions.
So, if you need or want to customize, HTML5 and XFBML are better.
Using HTML5 or XFBML totally depends on you.
When you are coding your website in HTML5 and want your markup be legal, HTML5 version would be nice.