I am getting a message like below in the log when I am logging in via facebook
*** -[NSUserDefaults setObject:forKey:]: Attempt to insert non-property value '<null>' of class 'NSNull'. Note that dictionaries and arrays in property lists must also contain only property values.
What is its meaning?
Why this message is coming?
In facebook.m class I am setting like
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject:[NSNull null] forKey:@"FBAccessTokenKey"];
[defaults setObject:[NSNull null] forKey:@"FBExpirationDateKey"];
As NSUserDefaults serializes its data to a property list (/var/mobile/Library/Preferences/[BUNDLE_ID].plist), all set properties should be property list object, i. e. NSArray, NSDictionary, NSString, NSNumber, NSData or NSDate. If you want to remove a value of a key, use the
- removeObjectForKey:message on NSUserDefaults.