title: can I create <fb:like> button programmatically in javascript?
body: <p>I am working on a Facebook App (iframe) and need to add an  box at runtime in Javascript once I know what is the href to like (eg: the item to like changes based on selection on the page, etc). </p>
  
  <p>Is there a way to create a box like this:</p>
  
  <pre><code>&lt;fb:like href="http://example.com" send="true" action="recommend" width="360" layout="standard" show_faces="true" /&gt;
  </code></pre>
  
  <p>or its HTML5 equivalent:</p>
  
  <pre><code>&lt;div class="fb-like" data-href="http://example.com" data-send="true" data-width="360" data-show-faces="true" data-action="recommend"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>in Javascript/jQuery at runtime?</p>
  
  <p>I already tried using the iframe like box but it doesn't support "send" so it would be my fallback choice. The  tag works well for me but I can't figure out how to change its href at runtime.</p>
  
  <p>PS: I do include the Javascript SDK, have a logged in session, etc.</p>
  
  <p>Any help is appreciated,
  Gionata Mettifogo</p>