我想将图片上传到脸书。 我可以上传照片和标题。我还想上传说明
我尝试将密钥“description”添加到字典中。但它没有用。
是否也可以上传说明?
以下是我正在使用的代码..
- (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 the description..
nil];
if (nil!=image_)
[uploadPhotoRequest call:@"photos.upload" params:params dataParam:(NSData*)image_];
NSLog(@"image uploaded");
[image_ release];
}
答案 0 :(得分:0)