【问题标题】:FB.ui feed post dialog changesFB.ui 提要帖子对话框更改
【发布时间】:2011-09-02 15:59:17
【问题描述】:

当用户在我们的某个网站上发表评论时,我们会为他们提供将评论发送到他们的 Facebook 墙的选项。即以下代码:

FB.ui({
    method: "stream.publish",
    attachment: {
        "name": "article title",
        "href": document.location.href,
        "description": "an excerpt from the article"
    }
    message: userComment, // The comment that the user entered on our site
    user_prompt_message: shareText // "What do you think?" or similar, configurable
}, function(response){
    if(response && response.post_id){
        // success!
    }
    else{
        // failed!
    }
});

这会弹出一个对话框,其中“您在此处的评论”输入预先填充了用户在我们网站上发布的相同评论。通过Facebook Platform Policies 完全没问题,甚至在我们最初实施它时也受到官方鼓励。

但是evidently 他们在 7 月 12 日弃用了 message 参数。所以现在你得到了一个很大的“分享”框,而你真正想要分享的内容(用户的评论)并没有包含在任何地方。因此,我们正在寻找另一种发布用户评论的方式。

所以,stream.publish 上的 latest documentation 仍然表示我们可以通过 API 调用直接传递 message 参数,即

https://api.facebook.com/method/stream.publish?callback=derp&message=EABOD+Facebook&access_token=MY_ACCESS_TOKEN&format=json

我对其进行了测试,它可以工作,但我想知道它是否还能继续工作,或者他们只是还没有关闭它?

【问题讨论】:

    标签: facebook feed fbdialogs


    【解决方案1】:

    如果它被替换,i 将是 feed 方法,它与 streem 方法非常相似。

        FB.ui(
        {
            method: 'feed',
            link: 'http://myapp.com/myitem',
            display: 'iframe',
            picture: 'http://myapp.com/mylogo.jpg',
            message: 'my message',
            name: 'click to see item',
            caption: 'title'
        })
    

    我们会看到下一个主要版本,看看!

    【讨论】:

    • “消息”选项也会被“提要”方法忽略。
    • 我必须添加redirect_uri:.... 和next: null,才能在我的iframe 标签应用程序中工作... any1 知道为什么吗?谢谢
    猜你喜欢
    • 1970-01-01
    • 2012-02-15
    • 1970-01-01
    • 1970-01-01
    • 2012-09-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多