i want upload image facebook. upload photo along caption. want upload description
i tried adding key "description" dictionary. didn't work.
is possible upload description well?
following code using..
- (void)posttowall { fbrequest *uploadphotorequest = [fbrequest request]; nsdata* imagedata = uiimagejpegrepresentation(saveimage, 1.0); uiimage *image_ = [[uiimage alloc] initwithdata:imagedata]; fbpermissiondialog* dialog1 = [[[fbpermissiondialog alloc] init] autorelease]; dialog1.delegate = self; dialog1.permission = @"photo_upload"; [dialog1 show]; nsmutabledictionary * params = [nsmutabledictionary dictionarywithobjectsandkeys: @"hey!!!!!!", @"caption", @"i own it..", @"description", //this didn't post description.. nil]; if (nil!=image_) [uploadphotorequest call:@"photos.upload" params:params dataparam:(nsdata*)image_]; nslog(@"image uploaded"); [image_ release]; }
Comments
Post a Comment