tags:

views:

30

answers:

0

I am having an issue, when trying to send a photo to facebook, my app crashes, it used to work properly, but all the sudden stopped working, this is my code

UIImage *imageToSend = [UIImage imageNamed:@"angrybagTN.png"];
NSMutableDictionary *args = [[[NSMutableDictionary alloc] init] autorelease];
[args setObject:imageToSend forKey:@"image"];//need to specify image
[args setObject:@"xxxxxxxxx" forKey:@"api_key"];  //xxx are replaced by my real api_key
[args setObject:[delegate.session sessionKey] forKey:@"session_key"];
[args setObject:secuence forKey:@"call_id"]; 
FBRequest *uploadPhotoRequest = [FBRequest requestWithDelegate:self];
[uploadPhotoRequest call:@"photos.upload" params:args];

I've been searching the web but nothing seems to work.

related questions