Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

How to add facebook comments

#3775
Avatar photo[anonymous]

I suppose that the only way is create script tag dynamically and use window.location to get a proper URL

e.g:

var scr = document.createElement(‘script’);
scr.setAttribute(‘src’, window.location.href + ‘/test.js’);
document.body.appendChild(scr);