基本 - 发布在墙上(来自应用教程)现在显示消息

时间:2011-10-03 17:12:52

标签: php facebook-graph-api

使用基本示例, 工作正常 - 但没有显示信息。 有任何想法吗?

     $app_id = "YOUR_APP_ID";

     $canvas_page = "YOUR_CANVAS_PAGE_URL";

     $message = "Apps on Facebook.com are cool!";

     $feed_url = "https://www.facebook.com/dialog/feed?app_id=" 
            . $app_id . "&redirect_uri=" . urlencode($canvas_page)
            . "&message=" . $message;

     if (empty($_REQUEST["post_id"])) {
        echo("<script> top.location.href='" . $feed_url . "'</script>");
     } else {
        echo ("Feed Post Id: " . $_REQUEST["post_id"]);
     }

&GT;

1 个答案:

答案 0 :(得分:1)

正如Feed Dialog的文件中所述 自2011年7月12日起,将忽略message参数。