在Facebook上分享视频失败
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在Facebook上分享视频失败相关的知识,希望对你有一定的参考价值。
我正在使用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上的个人资料时,我不断收到以下消息。
您的视频无法处理。访问视频帮助页面,了解常见问题
我用不同的AppIds尝试过这个。当我使用Facebook网站上传视频时,正在上传视频。
答案
它现在正在工作:)你可以在https://developers.facebook.com/bugs/543903808965945查看
另一答案
这似乎是一个新的已知Facebook漏洞(今天的第一份报告)。
你可以在这里支持错误报告:http://developers.facebook.com/bugs/543903808965945
以上是关于在Facebook上分享视频失败的主要内容,如果未能解决你的问题,请参考以下文章
使用 Android 分享 Intent 在 Facebook 上分享视频