title: How to use current url in Facebook Social Plugin without PHP?
body: <p>I have seen several solutions but none seem to work since Facebook updated the app and/or use PHP (get_permalink). I need a non-PHP solution, All my pages are static. I just need  data-href="" to be filled in with the Current Url so that I can implement the code across every page on the site that is needed without individually writing in the unique url for every page.</p>
  
  <p>Leaving data-href"" blank worked before 2.0</p>
  
  <blockquote>
  <pre><code>  &lt;div id="fb-root"&gt;&lt;/div&gt;
     &lt;script&gt;(function(d, s, id) {
     var js, fjs = d.getElementsByTagName(s)[0];
     if (d.getElementById(id)) return;
     js = d.createElement(s); js.id = id;
     js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
     fjs.parentNode.insertBefore(js, fjs);
     }(document, 'script', 'facebook-jssdk'));&lt;/script&gt;
  
  &lt;div class="fb-comments" data-href="????????????????????????" 
    data-width="430" data-num-posts="8" data-colorscheme="dark"&gt;&lt;/div&gt;
  </code></pre>
  </blockquote>