I am sharing a video on Facebook using the Facebook SDK 3.1.1. I mentioned the code here.
FBRequestConnection *newConnection = [[FBRequestConnection alloc] init];
NSString *fbid = @"me";
FBRequestHandler handler =
^(FBRequestConnection *connection, id result, NSError *error) {
[self requestCompleted:connection forFbID:fbid result:result error:error];
};
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"];
[newConnection addRequest:request completionHandler:handler];
[self.requestConnection cancel];
self.requestConnection = newConnection;
[newConnection start];
It worked correctly before. I get a common video identifier in response every time I initiate a request to download a video. But I keep getting the following message when I check my profile on FB in notifications.
Your video could not be processed. Visit the video help page for common issues.
I tried this with different AppIds. Downloading the video works, although I upload it using the facebook website. Please help me with this. His urgent nature.
Thanks at Advance.
Swati source
share