Hello. There is a problem. Put the social networking site facebook. I have it under every news on different pages of the site. In the settings of the wall code there is a URL , but it only goes to the main page or which one you specify.
Question: how to make the URL automatically determined for each page of the page, so as not to write it manually each time. I tried a lot of things, because in many things it is not strong.
Here is an example:
<div id="fb-root"></div> <script>(function(d){ var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;} js = d.createElement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1 "; d.getElementsByTagName('head')[0].appendChild(js); }(document));</script> <div class="fb-comments" data-href="http://copimytest.ucoz.ru" data-num-posts="2" data-width="680"></div> I need to: data-href = "http://copimytest.ucoz.ru" automatically determined for each page.
Who knows, please help. Thanks in advance!