i\'d like to change the URL to like of an FB:Like button dynamically using javascript.
right now i\'ve only been able to change the href attribute o
I think you have a few options...
Remove the element, build and append a string of XFBML and then parse the parent object an XFBML.parse call.
Remove the element or it's container, build and append an actual XFBML object using
Build an iframe container gets passed in the like url (with a GET) from the parent page. You can do this without even using a real backend if you can get the query string in JS. Then just build the markup before you init the facebook SDK and the like button will render. Facebook iframes all their stuff anyway, so this method isn't as clunky as it sounds. Tried this, works well.