facebook comments in info block
Posted: Sat Feb 18, 2012 6:32 am
first go to :
http://developers.facebook.com/docs/ref ... /comments/
second add this code to template common header.php between body tag
<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/hr_HR/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
then go to source code of opencart information module and add this with your link
<div class="fb-comments" data-href="http://example.com" data-num-posts="2" data-width="470"></div>
Its work but I dont know where to add moderation tool
This link is moderation tool:
<meta property="fb:admins" content="{YOUR_FACEBOOK_USER_ID}"/>
user ID can find here:
http://findmyfacebookid.com/
Ill try head tag in header.php but dont work ....please help
http://developers.facebook.com/docs/ref ... /comments/
second add this code to template common header.php between body tag
<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/hr_HR/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
then go to source code of opencart information module and add this with your link
<div class="fb-comments" data-href="http://example.com" data-num-posts="2" data-width="470"></div>
Its work but I dont know where to add moderation tool
This link is moderation tool:
<meta property="fb:admins" content="{YOUR_FACEBOOK_USER_ID}"/>
user ID can find here:
http://findmyfacebookid.com/
Ill try head tag in header.php but dont work ....please help