我在哪里可以获得faceconn.php文件?

时间:2011-10-18 14:17:47

标签: php facebook

我访问了http://faceconn.com/facebook-stream-publish-php网站并尝试了示例代码。 我也下载了php sdk,但找不到'faceconn / faceconn.php'文件。

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
    <head>
       <title>Facebook Stream Publish PHP example</title>
    </head>
    <body>
        <?php
           require_once 'facebook.php';
           require_once 'faceconn/faceconn.php';
           UseGraphAPI();

           $publish = new StreamPublish();
           $publish->SetName("Story Name");
           $publish->SetNameUrl("http://faceconn.com");
           $publish->SetCaption("{*actor*} publish this story:");
           $publish->SetDescription("This is a description of the story");
           $publish->SetOnPublishJavaScript("alert('Published')");
           $publish->SetMedia(new ImageMedia("http://faceconn.com/img/cat.png", "http://faceconn.com"));
           $publish->AddPropery(new Property("Product Name", "Faceconn Toolkit"));
           $publish->AddActionLink(new ActionLink("Faceconn", "http://faceconn.com"));
           $publish->Render();
       ?>
    </body>
</html>

我在哪里可以获得此文件?

1 个答案:

答案 0 :(得分:1)

如果您阅读该网站,该工具包已获得许可:http://faceconn.com/licensing-facebook-connect