Ejemplo n.º 1
0
// Optional: set story name
$publish->SetName("Facebook Connect PHP Toolkit");
// Optional: set URL
$publish->SetNameUrl("http://faceconn.com");
// Optional: set description
$publish->SetDescription("Facebook Connect PHP toolkit is PHP library specialized for development of Facebook Connect websites and Facebook iFrame applications. Both types of web applications are based on the same technology - Facebook Graph API and XFBML. Facebook Connect PHP Toolkit is a set of PHP classes used to provide an easy and fast way to integrate the most common Facebook UI features (like Invite Friends, Stream Publish, Login Button, Extended Permissions...) using the pure PHP code. Each control is documented in detail, with descriptions of all properties, code examples and demo pages. The value of the toolkit is not in its library alone, it is also an excellent resource of knowledge. By reading the source code of examples, you can spare big amounts of your precious time, and jump up in the learning curve, avoiding days of googling and reading forums.");
// Optional: set css class of publish button
$publish->SetCssClass("faceconn_button");
$publish->SetCssStyle("width:170px");
// Optional: set video as media
$publish->SetMedia(new ImageMedia("http://images.vatlab.net/logo.png", "http://faceconn.com"));
// Optional: add property
$publish->AddPropery(new Property("Product Name", "Faceconn Toolkit"));
$publish->AddPropery(new LinkedProperty("Product Demo", "Faceconn Toolkit Demo", "http://faceconn.com/demo/"));
// Optional: add action link
$publish->AddActionLink(new ActionLink("Faceconn", "http://faceconn.com"));
// render component on page
$publish->Render();
?>
                                        <br /><br />
                                    </div>
                                </form>
                                <br />
                                <?php 
include 'SessionCheck.php';
?>
                                <div style="width:605px">
                                    <center>
                                        <br />
                                        <a href="http://faceconn.com" id="tutorialbtn" runat="server" target="_black"><img src="images/tutorialbutton.png" alt="" /></a>
                                        <a href="http://faceconn.com/facebook-starter-kit-php" target="_black"><img src="images/starterkitsbutton.png" alt="" /></a>