This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get the publish permission | |
- (void)getPublishPermission { | |
NSArray* permissions = [[NSArray alloc] initWithObjects: | |
@"publish_stream", nil]; | |
[facebook authorize:permissions delegate:self]; | |
[permissions release]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)pickVideoFromAlbum { | |
UIImagePickerController *videoPicker = [[UIImagePickerController alloc] init]; | |
videoPicker.delegate = self; | |
videoPicker.modalPresentationStyle = UIModalPresentationCurrentContext; | |
videoPicker.mediaTypes =[UIImagePickerController availableMediaTypesForSourceType:UIImagePickerControllerSourceTypePhotoLibrary]; | |
videoPicker.mediaTypes = @[(NSString*)kUTTypeMovie, (NSString*)kUTTypeAVIMovie, (NSString*)kUTTypeVideo, (NSString*)kUTTypeMPEG4]; | |
videoPicker.videoQuality = UIImagePickerControllerQualityTypeHigh; | |
[self presentViewController:videoPicker animated:YES completion:nil]; | |
} |
NewerOlder