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); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>

 `<div class="fb-comments" data-href="http://example.com"

data-num-posts=“2” data-
width=“470”>`

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.