|
|
Facebook Like Button
Like Button is used to enable users of website to share interesting content with their friends. When user clicks on like button inside you page,
a story will appear in the user's friends' News Feed, with link back to your site. This increases number of visitors to your site.
Following example shows 3 types of layout of like button: 'standard', 'button_count' and 'box_count'. Last button is standard
type with 'send' option enabled.
For all details about the control, with descriptions of all optional properties, please visit
Facebook Like Button Tutorial.
Facebook session is not established. Please login by pressing login button:
// create new instance of the control
$like = new LikeButton();
// Optional: set external URL
$like->SetUrl("http://faceconn.com");
// render the control on the page
$like->Render();
// set layout to button_count
$like->SetLayout("button_count");
$like->Render();
// set layout to box_count
$like->SetLayout("box_count");
$like->Render();
// set layout to standard and show send button
$like->SetLayout("standard");
$like->SetSend(true);
$like->Render();
|