I found the simplest and most effective way to make your Facebook Comment block to recognize the individual URL of each page (especially good for e-commerce sites).
Add this script to your top of the header of your website template (it generates a data-href value for your comments window:
<script type="text/javascript" language="javascript">jQuery("#FC").attr("data-href", window.location.href.split('?')[0]);</script>
And then in your comments block for comments, add an id for the value generated by javascript:
<div id="FC" class="fb-comments" data-href="" data-width="700" data-numposts="5" data-colorscheme="light">
Voila. I devoted so much time to crack this nut, I just had to share it with you to save time for a break! Hurrah!
source share