xcode - Using FaceBook SDK why do I get 'NSInvalidArgumentException', reason: '-[__NSDictionaryM length]: unrecognized selector sent to instance -
this code gives error...why ?
'nsinvalidargumentexception', reason: '-[__nsdictionarym length]: unrecognized selector sent instance
nsmutabledictionary *info = [nsmutabledictionary dictionarywithobjectsandkeys:longitude,@"longitude",latitude,@"latitude",nil]; nsmutabledictionary *params = [nsmutabledictionary dictionarywithobjectsandkeys: info, @"venue", nil]; nsstring *graphpath = [nsstring stringwithformat:@"/%@", (id_of_event)]; fbrequest *updateevent = [fbrequest requestwithgraphpath:graphpath parameters:params httpmethod:post]; [updateevent startwithcompletionhandler: ^(fbrequestconnection *connection, nsdictionary* result, nserror *error) {
i trying set venue longitude , latitude, no matter try keep getting run time error. missing ? thought "venue" dictionary under main event , has valid keys "longitude" , "latitude". have 1 parameters got array , not dictionary ?
actually suspect these elements non writable , have add address @ @"location" see details appear.
regards
Comments
Post a Comment