不能发布与Facebook API评论 [英] Cannot post comment with Facebook API

查看:187
本文介绍了不能发布与Facebook API评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想张贴到使用Facebook API流对象的注释。这里是我的code:

I am trying to post a comment to a stream object using the Facebook API. Here is my code:

$this->facebook->api('/' . $postID . '/comments', 'post', array(
    'message' => 'Hello world!'
));

我已经设置了 publish_stream 允许像这样:

<fb:login-button scope="email, read_stream, publish_stream"></fb:login-button>

然而,注释不工作。我得到OAuthException:

However, the comment is not working. I am getting OAuthException:

(#200)无法访问OBJECT_ID:3427843256389

我有正确的权限,正确的职位ID。我不能为我的生活工作,为什么它不会让我的访问对象。任何想法?

I have the correct permission, and the correct post ID. I can't work out for the life of me why it won't let me access the object. Any ideas?

推荐答案

感谢奥利弗·约瑟夫·阿什为您最后的评论..谢谢你,我试过,并成功将注释添加到普通邮寄(不是视频或照片尚未虽然。 )看到我在发表新评论完整的答案,以一个状态通过API

thanks Oliver Joseph Ash for your last comment.. thanks to you i tried and succeeded to add comment to a regular post (not a video or photo yet though..) see my full answer in Post new comment to a Status via API

这篇关于不能发布与Facebook API评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆