I want to dynamically change the data-href for the fb comments plugin below based on a javascript variable. I\'m running a flash swf file and am passing the new link for da
This will load the initial comments box, the script will when executed will clear the comments div wrapper and replace html5 comments box with new url. JS SDK will then parse the new box.
JS SDK is required for this work. refer to https://developers.facebook.com/docs/reference/javascript/
fix for xfbml render from dom manipulation
user solved:
document.getElementById('comments').innerHTML='';
FB.XFBML.parse(document.getElementById('comments'));