-3
如何将录制的视频发布到Facebook墙上并留言,请告诉我是否有任何将视频发布到Facebook的可能性。将视频发布到Facebook墙上
如何将录制的视频发布到Facebook墙上并留言,请告诉我是否有任何将视频发布到Facebook的可能性。将视频发布到Facebook墙上
请查看这篇文章: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];
}