Facebook Like button allows users to share some content from the website with their friends. Pressing on the Like button will result in publishing of a story on user's profile, with link to the website. Increasing number of links will results in more visitor to the site from Facebook, and also better ranking in search engines.
Like Button Image
Following image represents the default Facebook Like Button, which is the most used control on web sites.
PHP Example
The example shows default Facebook Like Button, 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 Like Button PHP class with blue color.
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> <head> <title>Facebook Like Button PHP Example</title> </head> <body> <?php require_once 'facebook.php'; require_once 'faceconn/faceconn.php'; UseGraphAPI(); $like = new LikeButton(); $like->Render(); ?> </body> </html>
Configuration
Configuration of the Facebook Like Button PHP class is done through calls of the setter methods, which in turn set the private properties. For Facebook Like Button 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.

