0
我想实现以前的答案。这里建议代码:将图片添加到Facebook墙
-(void) postImageToFB:(UIImage *) image
{
NSData* imageData = UIImageJPEGRepresentation(image, 90);
Facebook* fb = [(uploadPicAppDelegate *)[[UIApplication sharedApplication] delegate] facebook ];
NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys:[fb accessToken],@"access_token",
@"message text", @"message",
imageData, @"source",
nil];
[fb requestWithGraphPath:@"me/photos"
andParams:params
andHttpMethod:@"POST"
andDelegate:self];
}
但我越来越对长期未发现的错误:uploadPicAppDelegate
在Facebook的SDK或搜索网络的我找不到这个(比其他附加类似的代码)。这是一个自定义创建的数据类型 - 或者 - 我错过了一个需要导入的文件?
谢谢。