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).
Is there a way to create a box like this:
<fb:like href="http://example.com" send="true" action="recommend" width="360" layout="standard" show_faces="true" />
or its HTML5 equivalent:
<div class="fb-like" data-href="http://example.com" data-send="true" data-width="360" data-show-faces="true" data-action="recommend"></div>
in Javascript/jQuery at runtime?
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.
PS: I do include the Javascript SDK, have a logged in session, etc.
Any help is appreciated, Gionata Mettifogo