本文介绍了验证后的第一个对话框立即失败并关闭对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iOS 5上使用最新的Facebook SDK。我可以使用SSO成功验证用户,然后尝试分享如下链接:

I'm using the latest Facebook SDK on iOS 5. I can use SSO to successfully authenticate the user, and then I attempt to share a link like this:

NSString *appId = [[[NSBundle mainBundle] infoDictionary]
                                          objectForKey:TSFacebookAppID];

NSMutableDictionary* params =
[NSMutableDictionary dictionaryWithObjectsAndKeys:
                          appId,                @"app_id",
                          [url absoluteString], @"link
                          title,                @"caption",
                          body,                 @"description",
                          nil];

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

第一次尝试这个,对话框出现并立即关闭,调用对话框:didFailWithError:错误委托方法错误是:

The first time I attempt this, the dialog appears and immediately closes, calling the dialog:didFailWithError:error delegate method. The error is:

然而,尝试共享链接工作正常。

However, subsequent attempts to share the link work fine.

推荐答案

这已经用3.0 SDK修复了,所以我要关闭这个题。解决方案:将SDK升级到3.0。

This has been fixed with the 3.0 SDK, so I'm going to close this question. Solution: upgrade the SDK to 3.0.

这篇关于验证后的第一个对话框立即失败并关闭对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-08 06:34
查看更多