Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sharing video on Facebook fails

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];

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

I have tried this with different AppIds. Uploading video is working though when I upload it using Facebook website.

like image 456
Swati Avatar asked Mar 20 '13 11:03

Swati


2 Answers

Its working now :) you can check at https://developers.facebook.com/bugs/543903808965945

like image 192
Khushboo Avatar answered Sep 29 '22 23:09

Khushboo


This seems to be a new known Facebook bug (first report today).

You can back the bug report here: http://developers.facebook.com/bugs/543903808965945

like image 44
MonsieurDart Avatar answered Sep 30 '22 01:09

MonsieurDart