Facebook Like Box
This control is used to allow users of the web site to become fan of the Facebook page, see messages from the page wall and people who are fans of the page.
The example shows how to create 3 like boxes. The fist one is default with 10 fans, show stream and show header. The second one is without fan list and the third
one is without fans and stream.
For all details about the control, with descriptions of all optional properties, please visit
Facebook Like Box Tutorial.
Facebook session is not established. Please login by pressing login button:
// create instance of the control
$likeBox = new LikeBox();
// setting of page Id
$likeBox->SetPageId("224341998463");
// render the default control on the page
$likeBox->Render();
// render without fan list
$likeBox->SetFansCount(0);
$likeBox->Render();
// render without fan list and stream
$likeBox->SetShowStream(false);
$likeBox->Render();
|