在iphone上分享来自Facebook和捆绑链接的图像

我想分享图像,链接等从我的iphone应用程序的Facebook。我的应用程序链接,阳离子,名称和说明成功张贴。 但我不能分享图像。 请按照我的代码

UIImage *image = [UIImage imageNamed:@"sample.png"]; NSData *imgData = UIImageJPEGRepresentation(image, 1.0); self.dictionary =[[NSMutableDictionary alloc] initWithObjectsAndKeys: @"https://www.google.com/ios", @"link", imgData, @"data", @"AppName", @"name", @"Testing", @"caption", @"say something about this", @"description", nil]; 

我的分享facebook代码是..

 [facebook requestWithGraphPath:@"/me/feed" andParams:dictionary andHttpMethod:@"POST" andDelegate:self]; 

我的问题是如何从捆绑图像,以及如何分享选定的图像到Facebook?请帮助我..

使用如下:

 NSString *filePath = [[NSBundle mainBundle] pathForResource:@"image1" ofType:@"png"]; NSData *videoData = [NSData dataWithContentsOfFile:filePath]; NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"My hat image", @"message", data, @"source", nil]; [facebook requestWithGraphPath:@"/me/photos" andParams:params andHttpMethod:@"POST" andDelegate:self];