使用对话框提要发布到朋友墙? (fb feb 6th '13变化)

时间:2013-02-08 20:28:27

标签: php facebook facebook-wall

我正在使用PHP SDK为朋友墙创建帖子,在6月6日更改之前,我只使用了图形api和/ [friend id] / feed / with post和parameters。我不确定如何使用对话框源来创建到另一面墙的帖子。这就是我设置它并将它们链接到网址的方式。这是它引导我的页面:

“找不到您请求的页面。 您可能已点击过期链接或输错了地址。有些网址区分大小写。“

$url = "https://www.facebook.com/[friend id]/feed?
 app_id=[app id]&
 redirect_uri=[redirect url]&
 link=[link]&
 message=[message]&
 picture=[picture url]&
 caption=[caption]&
 description=[description]&
 name=[name]";

//刚刚使用facebook.com/dialog/feed?...可以发布到我自己的墙上。

1 个答案:

答案 0 :(得分:1)

通过直接网址调用Feed对话框时,您必须使用to参数。检查the feed dialog reference的“直接网址示例”和“属性”块。

最终的网址看起来像这样(注意/dialog/feedto=...部分):

$url = 'https://www.facebook.com/dialog/feed?
        app_id=[appid]&
        link=[link]&
        picture=[picture url]&
        name=[name]&
        caption=[caption]&
        description=[description]&
        redirect_uri=[redirect uri]&
        to=[friend id]';
相关问题