Facebook graph api 视频发布到Facebook墙

Facebook graph api 视频发布到Facebook墙,facebook-graph-api,ios5,Facebook Graph Api,Ios5,如何将录制的视频与信息一起发布到Facebook墙上,请告诉我是否有可能将视频发布到Facebook。请查看本文: - (void)fbDidLogin { NSString *filePath = [[NSBundle mainBundle] pathForResource:@"sample" ofType:@"mov"]; NSData *videoData = [NSData dataWithContentsOfFile:filePath]; NSMutableDi

如何将录制的视频与信息一起发布到Facebook墙上,请告诉我是否有可能将视频发布到Facebook。

请查看本文:

- (void)fbDidLogin {
    NSString *filePath = [[NSBundle mainBundle] pathForResource:@"sample" ofType:@"mov"];
    NSData *videoData = [NSData dataWithContentsOfFile:filePath];
    NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                   videoData, @"video.mov",
                                   @"video/quicktime", @"contentType",
                                   @"Video Test Title", @"title",
                                   @"Video Test Description", @"description",
                       nil];
    [facebook requestWithGraphPath:@"me/videos"
                         andParams:params
                     andHttpMethod:@"POST"
                       andDelegate:self];
}