嗨,我正在使用这段代码将图像发布到 facebook
UIImage *image_LocalSharePhoto = [[UIImage alloc]initWithData:sharedSingleton.dataResultImage];
NSDictionary* attachment = [NSDictionary dictionaryWithObjectsAndKeys:
@"Put Captions On Pics", @"name",
@"Put Captions On Pics", @"caption",
image_LocalSharePhoto,@"picture",
@"I created this fun photo using a FREE app http://bit.ly/CapsPics. #PutCapsOnPics via @PutCapsOnPics", @"description",
nil];
NSString *attachmentStr = [jsonWriter stringWithObject:attachment];
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"532872463436844", @"api_key",
@"Share on Facebook", @"user_message_prompt",
attachmentStr, @"attachment",
nil];
[facebook dialog: @"feed" andParams:params andDelegate:self];
它会打开 facebook 页面,但不显示任何要分享或发布的内容。有人可以帮忙吗。谢谢!