I can upload to facebook just fine using the facebook iOS SDK. However, a video shot in the app (our own app) in portrait orientation ends up in landscape on facebook.
ALAssetRepresentation *rep = [asset defaultRepresentation];
Byte *buffer = (Byte*)malloc(rep.size);
NSUInteger buffered = [rep getBytes:buffer fromOffset:0.0 length:rep.size error:nil];
NSData *data = [NSData dataWithBytesNoCopy:buffer length:buffered freeWhenDone:YES];
Above is the code that converts the video file to a NSData file that is included in the FB upload request. I imagine that's where i'm losing the orientation, but i can't find a solution. Any help out there?
Thanks,
Chris
Refer the following Url
iphone ShareKit with Video upload for facebook?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With