facebook-graph-api - 在 Facebook 上分享视频失败

标签 facebook-graph-api ios6

我正在使用 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 作为响应。但是当我在通知中查看我在 FB 上的个人资料时,我不断收到以下消息。

Your Video could not be processed. Visit the Video help page to learn about common problems



我已经用不同的 AppIds 尝试过这个。当我使用 Facebook 网站上传视频时,上传视频是有效的。

最佳答案

它现在工作:)
你可以查看
https://developers.facebook.com/bugs/543903808965945

关于facebook-graph-api - 在 Facebook 上分享视频失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15522857/

相关文章:

Facebook 事件封面(图形 API)

ios - 自定义字体在 iPad 5.0 和 5.1 上不起作用

twitter - "[App]"想要访问 Twitter 帐户警报未在 iOS 6 中显示

iphone - iOS 6 的多个 UIInterfaceOrientations 应用程序

javascript - Facebook API - FB.Event.subscribe ('edge.create')不工作

ios - iOS 应用程序中的点赞按钮

facebook-graph-api - 无法访问 Facebook 广告系列

facebook - Facebook的graph api "limit"参数限制

iphone - "Share Screen"iOS 6