自 2013 年 2 月 6 日以来,通过“提要"连接失败使用 Graph API 发布到朋友的墙上 [英] Posting to friends' wall with Graph API via 'feed' connection failing since Feb 6th 2013

查看:22
本文介绍了自 2013 年 2 月 6 日以来,通过“提要"连接失败使用 Graph API 发布到朋友的墙上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用开始无法在朋友的供稿中发布项目.我收到此错误:

My app started failing to post items on friends' feeds. I am getting this error:

Facebook request error: The operation couldn’t be completed.
(facebookErrDomain error 10000.), details: Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0xa26e990 {error={
    code = 200;
    message = "(#200) Feed story publishing to other users is disabled for this application";
    type = OAuthException;
}}

我没有更改应用程序中的任何内容.可能跟脸书升级有关?这些是我连接到 Facebook 的权限:

I didn't change anything in the app. Maybe it is related with Facebook upgrade? These are the permissions that I connect to Facebook with:

[appDelegate.facebook authorize:[NSArray arrayWithObjects:@"publish_stream", @"friends_birthday", nil]];

推荐答案

是的,这是 几个月前宣布并于 2013 年 2 月 6 日生效:

Yes, this was announced months ago and took effect on Feb 6th 2013:

删除通过 Graph API 发布到朋友墙的功能
我们将删除通过 Graph API 发布到用户朋友的墙的功能.具体来说,针对 [user_id]/feed 的发布,其中 [user_id] 与会话用户不同,或者 stream.publish 调用,其中 target_id 用户与会话用户不同,将失败.如果您想允许人们发布到他们朋友的时间线,请调用 Feed 对话框.通过用户提及标记动作标签 将显示在朋友的时间线上(假设朋友批准了标签).有关详细信息,请参阅此博文.

Removing ability to post to friends walls via Graph API
We will remove the ability to post to a user's friends' walls via the Graph API. Specifically, posts against [user_id]/feed where [user_id] is different from the session user, or stream.publish calls where the target_id user is different from the session user, will fail. If you want to allow people to post to their friends' timelines, invoke the feed dialog. Stories that include friends via user mentions tagging or action tagging will show up on the friend’s timeline (assuming the friend approves the tag). For more info, see this blog post.

解决方法是使用 Feed Dialog 允许用户发布相同的内容,但选择他们想要发布的用户.

The workaround is to use the Feed Dialog which allows users to post the same content, but choose the user they want to post it to.

这篇关于自 2013 年 2 月 6 日以来,通过“提要"连接失败使用 Graph API 发布到朋友的墙上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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