【发布时间】:2012-05-21 08:24:59
【问题描述】:
我正在使用 Facebook IOS sdk graph API 将照片上传到我的 facebook 墙上。一切正常,这是我使用的常用代码:
// Here i am compressing the image
NSData *yourImageData= UIImageJPEGRepresentation([_images objectAtIndex:pageIndex],0.5);
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"Photo taken with my app", @"message", yourImageData, @"source", nil];
[_facebook requestWithGraphPath:@"/me/photos" andParams:params andHttpMethod:@"POST" andDelegate:self];
所以我的问题是我应该进一步压缩我的图像吗?还是有其他方法可以更快地完成照片上传?
非常感谢, 转身
【问题讨论】:
标签: ios facebook-graph-api facebook-ios-sdk