-3

如何通过消息将录制的视频发布到 Facebook 墙上,请告诉我是否有可能将视频发布到 Facebook。

4

1 回答 1

0

请查看这篇文章:How-To: Use the Graph API to Upload a Video (iOS)

- (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];
}
于 2012-06-22T07:48:24.300 回答