Thread:Project:Support desk/How to insert discussion widget from Facebook ot VK.com to discussion page?/reply (11)

I guess it doesn't work because you need to change API_ID with some code. I've actually didn't saw your wiki because your domain isn't known to my DNS...

But for you to understand, I'll explain the code:

$.getScript loads a JavaScript URL, and when it's loaded, it executes the function passed as the second parameter. You need to do this because, as I said, you can't put tags inside Common.js because it's not HTML but directly a JS file. But $.getScript will load the script as if it was called by a script tag.

The VK.init part is inside of the callback function because it depends on the script being loaded, so it's execution should wait until the script has been loaded, since that load is done asynchronously (because it's not a script tag).

Following those instructions you should be able to insert a facebook widget as well.