Facebook comments on my website work well except the fact when someone comments on one article that same comment shows up on every article on the website. Obviously, I don't want that. What I did is basically copy and paste code offered on developers.facebook.com:
`<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"></div>`
What did I do wrong? I would appreciate any help.
Vio
I put the page url after the domain and it's work for me. MyDomain is the domain I out when I create the code on the Facebook comments.
Due to the need to have separation of concerns...."data-href" tag is there to serve...
For example: if you have some page www.example/123.com,,,, your data-href value must be www.example/123.com....