使用 iOS SDK 生成 Feed 对话框错误
更新:当 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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
页面 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
我不认为你做错了什么。
我的工作应用程序刚刚遇到了同样的问题。
很可能是 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
您可以使用现在有效的直接 REST API 或 Graph API 调用。
You can use direct REST API or Graph API calls that are working now.