Facebook Comment Plugin
-
Hi Guys
I hope someone will help me out on this ??
I am using this plugin https://developers.facebook.com/docs/reference/plugins/comments/ where you copy n paste the code into ur theme, which I done and works great = apart from one thing.Well, when people make a comment, then on their profile the facebook is not displaying the current page site but rather the actual domain.com website. In a sense, is not showing the link to where the person has commented but instead linking to the main website.
This is the code:
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser. Or use pastebin.com instead. ]
<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_GB/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
and then the actual comment code:
<div class="fb-comments" data-href="https://mydomain.com" data-width="600" data-num-posts="15"></div>
I am sure where must be something the .com in order for the plugin to catch / fetch the link from the current page.
Any ideas guys ??
Thanks
- The topic ‘Facebook Comment Plugin’ is closed to new replies.