Facebook Comments PHP class is used to easily enable visitors of your web site to write comments on articles, photos or any other content on your web site, and share them with their friends by posting them on their profiles. Posting a comment on user's wall will result in more visitors from the Facebook to your site.
Comments Image
Following image represents the default Facebook Comments control, which is one of the most often used controls on web sites.
Usage Example
The example shows default Facebook Comments control which is shown on picture above. The example shows the code of whole page, but important content is highlighted: required includes and initialization for any page with brown color, and working with Facebook Comments PHP class with blue color.
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> <head> <title>Facebook Comments PHP example</title> </head> <body> <?php require_once 'facebook.php'; require_once 'faceconn/faceconn.php'; UseGraphAPI(); $comments = new Comments(); $comments->Render(); ?> </body> </html>
Configuration
Configuration of the Facebook Comments PHP class is done through calls of the setter methods, which in turn set the private properties. For Facebook Comments PHP class, there are no required properties to set. All you have to do is to create new instance of the class and call Render() method. All properties from the list below are optional.




