Facebook SDK crashes on iPad, running on iOS 4.3.3

I was just about finishing my app and finally when I got to testing it with all the available devices I had, I found out that it crashes on the iPad. So I tried to run the example code Facebook provided for the SDK and as soon as I try to log in the app crashes.

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: body)'

Runs just fine on android and my iPhone that is running iOS 5.0.1

Anyone else run into this issue and/or might know how to fix it?

I’m having this exact same problem on an iPad 2 running 4.3.1. Did you manage to fix it? Anyone else have a solution?

I’ve figured it out:

FBUtility.m in the facebook ios sdk is using the function: [NSJSONSerialization JSONObjectWithData:options:error:]

which is only available in iOS 5.0 and later.

Does anyone know if Facebook intended for the minimum OS version to be 5.0? Or was this an oversight? I can’t find a minimum OS version on the developer site.

EDIT: Nevermind, as of Facebook SDK 3.5, the minimum supported version is iOS 5.0.

https://developers.facebook.com/docs/ios/change-log-3.x/