6

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

unimitated
  • 61
  • 2

1 Answers1

1

Refer the following Url

iphone ShareKit with Video upload for facebook?

Community
  • 1
  • 1
VSN
  • 2,361
  • 22
  • 30