How to add Facebook comments to XOOPS Publisher Module

Date 2015/2/10 14:02:00 | Topic: XOOPS Tips

To add Facebook comments to Publisher, just add a few lines of code in Publisher/templates/Publisher_item.html, just above the XOOPS comment system:

<div id="fb-root"></div>
script src=""></script>
<fb:comments href="<{$item.itemurl}>" num_posts="5" width="650"></fb:comments>

The advantage of having Facebook comments in Publisher, is that comments will also be posted on the users Facebook wall if he decides to do so. Default is ON. That means more traffic to your site, as friends will see the article he/she commented on.

To moderate Facebook comments on your site, you need to add a meta tag in your theme, between

<meta property="fb:admins" content="{YOUR_FACEBOOK_USER_ID}"/>

To add multiple moderators, add more than one element, each with one Facebook ID.

YOUR_FACEBOOK_USER_ID is typical something like this: 100007810858108

which will make the code to add:

<meta property="fb:admins" content="100007810858108" />

The disadvantage with Facebook comments, is that comments will vanish if the user disable his account or is deleted. But for traffic it is great!

This article comes from DanorDesign

The URL for this article is: