I am using Facebook iOS SDK 3.2 and I get the following error when calling FBWebDialog presentRequestsDialogModallyWithSession:message:title:parameters:handler when passing in the activeSession.
"* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary objectForKeyedSubscript:]: unrecognized selector sent to instance"
Here is my code:
[FBWebDialogs presentRequestsDialogModallyWithSession:[FBSession activeSession]
message:msg title:nil parameters:nil
handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {
...
}];
It looks like NSDictionary objectForKeyedSubscript is only available in iOS6 or later, but I need to target iOS 5.0 for this project.
Is there anyway I can get FacebookSDK 3.2 to post requests to Facebook with iOS5?