在Facebook上分享视频失败

5

我正在使用Facebook SDK 3.1.1分享一个视频到Facebook。下面是相关代码:

FBRequestConnection *newConnection = [[FBRequestConnection alloc] init];

    // for each fbid in the array, we create a request object to fetch
    // the profile, along with a handler to respond to the results of the request
    NSString *fbid = @"me";
    // create a handler block to handle the results of the request for fbid's profile
    FBRequestHandler handler =
    ^(FBRequestConnection *connection, id result, NSError *error) {
        // output the results of the request
        [self requestCompleted:connection forFbID:fbid result:result error:error];
    };

    // create the request object, using the fbid as the graph path
    // as an alternative the request* static methods of the FBRequest class could
    // be used to fetch common requests, such as /me and /me/friends

    NSData *videoData = [NSData dataWithContentsOfFile:path];
    NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                   videoData, @"video.mov",
                                   @"video/quicktime", @"contentType",
                                   @"Video", @"title",
                                   @"Video Test Description", @"description",
                                   @"hello",@"subdescription",
                                   nil];
    FBRequest *request = [[FBRequest alloc] initWithSession:theDelegate.session graphPath:@"me/videos" parameters:params HTTPMethod:@"POST"];
    //:FBSession.activeSession graphPath:@"me/?fields=location"];

    // add the request to the connection object, if more than one request is added
    // the connection object will compose the requests as a batch request; whether or
    // not the request is a batch or a singleton, the handler behavior is the same,
    // allowing the application to be dynamic in regards to whether a single or multiple
    // requests are occuring
    [newConnection addRequest:request completionHandler:handler];

    // if there's an outstanding connection, just cancel
    [self.requestConnection cancel];

    // keep track of our connection, and start it
    self.requestConnection = newConnection;
    [newConnection start];

之前它运作得很好。每次我启动上传视频请求时,都会在响应中获得共享的视频ID。但是,当我在Facebook个人资料中检查通知时,我一直收到以下消息:

无法处理您的视频。访问视频帮助页面以了解常见问题

我已尝试使用不同的AppIds进行尝试。但是,当我使用Facebook网站上传视频时,上传视频是有效的。


2
你有检查过旧版的Facebook SDK吗? - Khushboo
2
是的,我有。我也遇到了同样的问题。 - Swati
3
是的,这很紧急。我正在使用我的iOS应用程序进行操作。我必须将其提交到AppStore并包含此功能。 - Swati
2
在Android下出现了同样的问题(13小时前)...http://stackoverflow.com/questions/15518434/video-cannot-be-processed-error-notification-while-uploading-a-video 我开始认为这是Facebook的一个bug。 - MonsieurDart
2
我也遇到了旧版和新版Facebook SDK(3.1.1)的同样问题。 - Khushboo
显示剩余2条评论
2个回答

3

1
是的,截至昨晚(2013年3月21日22:00 GMT),它似乎又可以工作了。让我们希望它能一直保持这样。 - Javier Quevedo

2

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接