title: Update FB:Like URL Dynamically using JavaScript
body: <p>I'd like to change the URL to like of an <strong>FB:Like</strong> button dynamically using JavaScript.</p>
  <p>Right now I've only been able to change the <code>href</code> attribute of the <code>fb:like</code> tag (I've pasted the code below). But simply changing the <code>href</code> doesn't seem to work. Perhaps I have to re-initiate the FB:Like button, but so far I can't figure out how..</p>
  <pre><code>function update_share(container, url) {
    // update fb:like href value
    var container = container[0] || document.body;
    var button = container.getElementsByTagName('fb:like');
    button[0].setAttribute('href', url);
  }
  </code></pre>