<p style="text-align: justify">
                                    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.
                                    <br /><br />
                                    For all details about the control, with descriptions of all optional properties, please visit
                                    <b><a href="http://faceconn.com/facebook-like-box-php">Facebook Like Box Tutorial</a></b>.
                                    <br />
                                    </p>

                                    <?php 
// check facebook session
include 'SessionCheck.php';
// create instance of the control
$likeBox = new LikeBox();
// setting of page Id
$likeBox->SetPageId("167880046558855");
// 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();
// show the code example
echo "<br /><br />";
include 'CodeExamples/LikeBoxExample.php';
?>
                                </td>
Exemple #2
0
                                    <div class="contentdiv">

                                       <h1 style="font-size:18px">Facebook Like Box</h1>

                                       <p style="text-align: justify">
                                        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 2 like boxes. The fist one is default with 10 fans, show stream and show header. The second one is without fan list.                                       one is without fans and stream.
                                        <br /><br />
                                        For all details about the control, with descriptions of all optional properties, please visit:<br />
                                        <b><a href="http://faceconn.com/facebook-like-box-php">Facebook Like Box Tutorial</a></b>.
                                        <br />
                                        </p>

                                        <?php 
// create instance of the control
$likeBox = new LikeBox();
// setting of page Id
$likeBox->SetPageId("167880046558855");
// render the default control on the page
$likeBox->Render();
// render without fan list
$likeBox->SetFansCount(0);
$likeBox->Render();
?>
                                      <br />
                                    </div>
                                </form>
                                <br />
                                <?php 
include 'SessionCheck.php';
?>