Create Permalink Dynamically


I’m trying to add facebook comments to my site and when I get teh code
I"m presented with the following:
<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); = id; js.src = "//"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>

 `<div class="fb-comments" data-href=""

data-num-posts=“2” data-

What I’d like to do is where the “data-href” resides I’d like to create
a permalink to my page/pot dynamically. is there a radiant tag or
something similar to do this? I can’t seem to find one.