将视频上传到Facebook错误:视频上传超时

Ria*_*ian 5 facebook facebook-graph-api ios

我尝试使用Graph API将视频上传到Facebook,但出现此错误。

code = 390;
error_subcode = 1363030;
error_user_msg = "Your video upload timed out before it could be completed. This is probably because of a slow network connection or because the video you're trying to upload is too large. Please try again.";
 error_user_title = "Video Upload Time Out";
 message = "There was a problem uploading your video file. Please try again.";
Run Code Online (Sandbox Code Playgroud)

下面是我的代码:

NSData *videoData = [NSData dataWithContentsOfFile:videoURL];
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                videoData, @"video.mp4",
                                @"video/mp4", @"contentType",
                                @"message text", @"title",
                                @"title text", @"description",
                                nil];
[[[FBSDKGraphRequest alloc]
                  initWithGraphPath:@"me/videos"
                  parameters: params
                  HTTPMethod:@"POST"]
                 startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) {
                     if (!error) {
                         NSLog(@"Post id:%@", result[@"id"]);
                     }
                     else {
                         NSLog(@"video upload error: %@", error.description);
                     }
                 }];
Run Code Online (Sandbox Code Playgroud)

我阅读了问题和答案,但找不到正确的解决方案。我认为这不是网络或视频编解码器问题。视频文件大小小于1MB,并且可以在Facebook应用中顺利上传。

有什么问题 请帮我。

提前致谢。