In the process of configuring a “Like” button to use across EMA’s sites, I decided to use the more-enhanced XFBML version over the <iframe> version. One notable feature is the ability for users to add a comment after liking something. This causes the recommendation to show up on the user’s Facebook as a bigger, more informational wall post—not just a simple line item.
It turns out that it’s a little hard to find up-to-date info about Facebook’s Javascript SDK, which you need to add to your site to use XFBML. I spent a few hours going in circles before I finally figured out how to use it. Here are some instructions to include XFBML in your site.
- (optional) If you want your page to validate, add these to your
<html>tag:<html xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">


