在Facebook上共享视频失败 [英] Sharing Video on facebook fails

查看:324
本文介绍了在Facebook上共享视频失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Facebook上使用Facebook SDK 3.1.1分享视频。我已经在这里提到了代码。

I am sharing a video on facebook using Facebook SDK 3.1.1. I have mentioned the code here.

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中查看我的个人资料时,我会收到以下消息。
无法处理您的视频。访问视频帮助页面了解常见问题

It was working properly earlier. I get the shared Video Id in response every time I initiate an upload video request. But I keep getting the following message when I check my profile on FB in the notifications. Your Video could not be processed. Visit the Video help page to learn about common problems

我已尝试使用不同的AppIds。上传视频正在使用,当我上传使用Facebook网站。请帮我这个。它的紧急。

I have tried this with different AppIds. Uploading video is working though when I upload it using facebook website. Please help me with this. Its urgent.

感谢提前。

推荐答案

:)
你可以查看
https://developers.facebook.com/bugs / 543903808965945

这篇关于在Facebook上共享视频失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆