With Facebook Bookmark Button users can bookmark your website inside the Facebook environment and later on easily navigate back. The bookmark will be placed on left column of the user's Facebook homepage.
Bookmark Button Image
Following image shows Bookmark Button and Bookmark Dialog which appears when the button is pressed.
PHP Example
The example shows PHP code to create the Facebook Bookmark Button from 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 Bookmark 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 Bookmark Button PHP Example</title> </head> <body> <?php require_once 'facebook.php'; require_once 'faceconn/faceconn.php'; UseGraphAPI(); $bookmark = new Bookmark(); $bookmark->Render(); ?> </body> </html>
Configuration
Configuration of Facebook Bookmark Button PHP class is done through calls of the setter methods, which in turn set the private properties. For Facebook Bookmark class, there is only one mandatory and couple of optional properties to set. After the configuration is set, all you have to do is to call Render() method, and the control will display on page.

