我正在使用Facebook iOS SDK 3.2,并且在传递activeSession时调用FBWebDialog presentRequestsDialogModallyWithSession:message:title:parameters:handler时出现以下错误。Facebook SDK 3.2 for iOS 5 FBWebDialogs错误
“*终止应用程序由于未捕获的异常 'NSInvalidArgumentException',原因是:“ - [__ NSCFDictionary objectForKeyedSubscript:]:无法识别的选择发送到实例”
这里是我的代码:
[FBWebDialogs presentRequestsDialogModallyWithSession:[FBSession activeSession]
message:msg title:nil parameters:nil
handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {
...
}];
它看起来像NSDictionary objectForKeyedSubscript仅适用于iOS6或更高版本,但我需要针对此项目的iOS 5.0。
无论如何,我可以让FacebookSDK 3.2向iOS5发布请求到Facebook吗?
其余的错误是什么?你有没有尝试过:http://stackoverflow.com/questions/14157784/can-we-invite-people-to-use-our-app-or-send-friend-request-from-the-app-via-face/ 16605625#16605625 – NeverHopeless 2013-05-22 17:53:04