Creating Facebook Comments on site with Phoca Facebook Comments module:

  • Go to Extensions » Module Manager » New » Phoca Facebook Comments.
  • Set following parameters:
    • Facebook comments application ID - set the application ID (see below how to get it)
    • Facebook Comments Width - set width of comment box (in px)
    • Facebook Language - set the language of the Facebook API
    • Module Class Suffix - set class suffix for the module
    • Only Full Article - display comments only on sites where full article is displayed

 

If you want to add Facebook comment feature to your site, you need to create a Facebook Comment Application in your Facebook Account.

Facebook Settings
  • Login to Facebook
  • Go to "Create an Application" site - https://developers.facebook.com/setup/
    • Add site name
    • Add an URL of your site
    • Select language which your site is using
  • Create an application - App Name, App URL, App ID and App Secret values will be created.
  • Copy App ID value.

 

 

You can edit your Facebook application in your Facebook Account. Go to Account - Application Settings - click on Developer (or go to this site: https://www.facebook.com/developers/). Now you should see your application(s) in the top right area of your site. Click on your selected application to edit it.

As administrator and developer of the Facebook Comment Application you are able to admin the comments on the site. You are able to delete the comments on your site if you are logged in on the site with your Facebook login.

Because Phoca Facebook Comments module cannot edit main html tag of your site, recommended attribute (by Facebook) should be added to your template index.php:

xmlns:fb="https://www.facebook.com/2008/fbml"

Example - setting rhuk_milkyway, modify:

templates/rhuk_milkyway/index.php

FROM:

<html xmlns="https://www.w3.org/1999/xhtml"  xml:lang="<?php echo $this->language; ?>" lang="<?php echo  $this->language; ?>" >

TO:

<html xmlns="https://www.w3.org/1999/xhtml" 
xmlns:fb="https://www.facebook.com/2008/fbml"
xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
 
This is important e.g. if your comments are not displayed in browsers like Internet Explorer is.