使用 iOS SDK 生成 Feed 对话框错误

发布于 2024-12-06 22:34:48 字数 1218 浏览 1 评论 0原文

更新:当 facebook 修复他们的服务时,这个问题得到了解决。

我正在尝试让 feed 对话框与 facebook 共享。我之前已经使用旧的、已弃用的 API 和 SDK 进行了所有工作,但刚刚转向使用当前的 iPhone SDK,并正在尝试一个示例 直接来自此处的文档

我不断收到错误,“发布错误”“从提供的数据生成摘要故事时出现问题”,我看不出我做错了什么。请注意,我已删除了 message 参数,因为它在 7 月已被弃用,但无论该参数是否存在,我都会遇到同样的问题。

Facebook *facebook = [[Facebook alloc] initWithAppId:kFacebookAppId andDelegate:self];


NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                               kFacebookAppId, @"app_id",
                               @"https://developers.facebook.com/docs/reference/dialogs/", @"link",
                               @"http://fbrell.com/f8.jpg", @"picture",
                               @"Facebook Dialogs", @"name",
                               @"Reference Documentation", @"caption",
                               @"Using Dialogs to interact with users.", @"description",
                               nil];   

[facebook dialog:@"feed" andParams:params andDelegate:self];

谁能看到我可能做错了什么? 谢谢!

这是错误屏幕

UPDATE: This problem was resolved when facebook fixed their service.

I'm trying to get the feed dialog to work for sharing with facebook. I had it all working before with the old, deprecated API and SDK, but have just moved to using the current iPhone SDK and am trying an example directly from the documenation here;

I keep getting the error, "Error with publishing" "There was a problem generating the Feed story from the provided data" and I cannot see what I'm doing wrong. Note that I have taken out the message parameter as it was deprecated in July, but I get the same problem whether or not that parameter is present.

Facebook *facebook = [[Facebook alloc] initWithAppId:kFacebookAppId andDelegate:self];


NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                               kFacebookAppId, @"app_id",
                               @"https://developers.facebook.com/docs/reference/dialogs/", @"link",
                               @"http://fbrell.com/f8.jpg", @"picture",
                               @"Facebook Dialogs", @"name",
                               @"Reference Documentation", @"caption",
                               @"Using Dialogs to interact with users.", @"description",
                               nil];   

[facebook dialog:@"feed" andParams:params andDelegate:self];

Can anyone see what I might be doing wrong?
Thanks!

Here's the error screen

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

坏尐絯 2024-12-13 22:34:48

页面 http://developers.facebook.com/live_status 今天 16:49(GMT)报告了该问题+1)

关注问题:https://developers.facebook.com/bugs/295765603772094

The page http://developers.facebook.com/live_status reports the issue today at 16:49 (GMT+1)

To follow the issue : https://developers.facebook.com/bugs/295765603772094

如日中天 2024-12-13 22:34:48

我不认为你做错了什么。

我的工作应用程序刚刚遇到了同样的问题。

很可能是 Facebook 方面的问题

I don't think you are doing something wrong.

Just experienced the same problem with with my working app.

Most likely an issue on the side of facebook

披肩女神 2024-12-13 22:34:48

您可以使用现在有效的直接 REST API 或 Graph API 调用。

You can use direct REST API or Graph API calls that are working now.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文