【发布时间】:2016-10-24 08:30:04
【问题描述】:
我有一个 facebook 应用程序,并且我有 publish_actions 允许注册用户使用。
我在一些测试墙上创建了一个 facebook 帖子:https://www.facebook.com/permalink.php?story_fbid=189793004799930&id=100013076942056
我获取了对象 ID:189793004799930,并使用用户访问令牌发出请求,根据此 api 参考:https://developers.facebook.com/docs/graph-api/reference/v2.8/object/likes
我收到错误消息:"invalid_request" "(#12) singular statuses API is deprecated for versions v2.4 and higher。
如果我使用此处提到的用户 ID 和帖子 ID (100013076942056_189793004799930):How should we retrieve an individual post now that /[post-id] is deprecated in v2.4?
我得到错误:invalid_request" "(#100) Story does not exist or user does not have permission to interact with it 即使我有权限
更新
这是我对用户的权限:这是我问publish_actions,email 的范围,这适合用户帖子吗?还是页面帖子?
【问题讨论】:
-
你有什么权限?由于这是用户时间轴上的帖子,因此您可能首先需要获得“查看”该帖子的权限,这意味着您需要获得帖子所有者的
user_ posts许可。 -
@CBroe 这是我对用户的权限:这是我要求发布操作的范围,电子邮件,这适合用户帖子吗?还是页面帖子?
-
如果是用户帖子,您的应用很可能首先需要能够阅读该帖子,因此您需要来自所有者的 user_posts。
-
@CBroe,谢谢,我可以“喜欢”一个页面帖子吗?
标签: facebook facebook-graph-api