The following code is the method that I use to take picture with and then send to Facebook using share kit. Problem is this causes images to be sent with a 90 degree rotation.The reason I know this is the code that is responsible for this is because if I upload an image from the iPhone gallery the image gets shared to Facebook normally.
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera])
{
[imagePickerController setSourceType:UIImagePickerControllerSourceTypeCamera];
}
// image picker needs a delegate,
[imagePickerController setDelegate:self];
// Place image picker on the screen
[self presentModalViewController:imagePickerController animated:YES];
}