Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8513991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:44:17+00:00 2026-06-11T04:44:17+00:00

I found quite some solutions to uploading video with the facebook SDK, but none

  • 0

I found quite some solutions to uploading video with the facebook SDK, but none of them work (including the information from the facebook developer blog). Here is the code I’m using to upload a video. The “out_composed.mov” is created successfully, as I can save that video in the gallery or send it via email.

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectoryPath = [paths objectAtIndex:0];
NSString* composedOutputPath = [documentsDirectoryPath stringByAppendingPathComponent:@"out_composed.mov"];
NSData *videoData = [NSData dataWithContentsOfFile:composedOutputPath];

NSMutableDictionary<FBGraphObject>* params = [FBGraphObject graphObject];
[params setDictionary:[NSMutableDictionary dictionaryWithObjectsAndKeys:
                       videoData, @"video.mov",
                       @"video/quicktime", @"contentType",
                       @"My awesome video", @"title", nil]];

if (!appDelegate.session.isOpen)
{
    [FBSession openActiveSessionWithPermissions:[NSArray arrayWithObjects:@"offline_access", @"publish_stream",@"user_videos",@"video_upload",nil] allowLoginUI:true completionHandler:^(FBSession *session, FBSessionState status, NSError *error)
                           {
                               FBRequest* uploadVideoRequest = [FBRequest requestForPostWithGraphPath:@"/me/videos" graphObject:params];
                               [uploadVideoRequest startWithCompletionHandler:^(FBRequestConnection *connection, id result, NSError *error)
                                {
                                    // The server returns "353 missing video file" here.
                                    if(error != nil) NSLog(@"%@",[error description]);
                                    else NSLog(@"Error: %@", error);
                                }];
                           }];
    appDelegate.session = [FBSession activeSession];
} else
{
    FBRequest* uploadVideoRequest = [FBRequest requestForPostWithGraphPath:@"/me/videos" graphObject:params];
    [uploadVideoRequest startWithCompletionHandler:^(FBRequestConnection *connection, id result, NSError *error)
     {
         if(error != nil) NSLog(@"%@",[error description]);
         else NSLog(@"Error: %@", error);
     }];
}

The error I get is:

Error Domain=com.facebook.sdk Code=5 "The operation couldn’t be completed. (com.facebook.sdk error 5.)" UserInfo=0x1fdc94a0 {com.facebook.sdk:ParsedJSONResponseKey={
    body =     {
        error =         {
            code = 353;
            message = "(#353) Missing video file";
            type = OAuthException;
        };
    };
    code = 400;
}, com.facebook.sdk:HTTPStatusCode=400}

How can I fix this? Thanks a lot in advance!

Heiko

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T04:44:19+00:00Added an answer on June 11, 2026 at 4:44 am

    The following worked for me using the 3.0.8 SDK (using -requestWithGraphPath:... instead of -requestForPostWithGraphPath:...):

    NSDictionary *parameters = [NSDictionary dictionaryWithObject:videoData forKey:@"sample.mov"];
    FBRequest *request = [FBRequest requestWithGraphPath:@"me/videos" parameters:parameters HTTPMethod:@"POST"];
    [request startWithCompletionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
        NSLog(@"result: %@, error: %@", result, error);
    }];
    

    What seems to be missing though is a way to show the upload progress.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've tried quite some fixes i found on stackoverflow and elsewhere but I couldn't
Well, I found quite a lot of threads with ISE 500 , but none
I have found some useful info on this issue but can't quite wrap my
I'm doing some VBA development and I found creating SQLs quite efficient way of
While doing some refactoring I've found that I'm quite often using a pair or
I'm working with some code that I've found online and I don't quite understand
I know it's been asked around but I haven't found quite the answer yet
I've looked through several posts but I haven't quite found any answers that have
I have searched and found another with quite close question but the result was
My question is quite general and some related questions can be found on SO,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.