i am uploading photos to my facebook wall uising Facebook IOS sdk graph API. Everything is working fine here is the usual code i am using :
// 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];
So my question is should i compress further my image? or is there another way so that the photo upload can be done faster?
Many thanks, veer
Please update to the new SDK 3.0.8 and use the FBRequest class
You can see how it can be done in the sample application as part of the SDK ( Hackbook or Scrumptuous).
Thanks!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.