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 8339057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:46:42+00:00 2026-06-09T04:46:42+00:00

I want to upload video on Facebook . for this I am using my

  • 0

I want to upload video on Facebook .

for this I am using my this old code , but it is not allow me to post videos in Facebook .

- (id)initWithImage:(UIImage *)upload_image {

if (self = [super init]) {
    self.uploadImage = upload_image;
}
return self;
}

/**
* this way the class is easily extensible to other file
* types as FB allows us to upload them into the graph…
* with little if any modification to the code
**/

- (void)appendDataToBody:(NSMutableData *)body {

/**
 * Facebook Graph API only support images at the moment, surely videos must occur soon.
 **/

        NSData *picture_data = UIImagePNGRepresentation(uploadImage);
[body appendData:[[NSString stringWithFormat:@"Content-Disposition: form-data; name=\"media\";\r\nfilename=\"media.png\"\r\n\r\n"] dataUsingEncoding:NSUTF8StringEncoding]];
[body appendData:picture_data];

}

Can anyone tell me what should I change here ? to post the video in Facebook?

  • 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-09T04:46:44+00:00Added an answer on June 9, 2026 at 4:46 am

    you can download the official video upload tutorial given to below link

    Official demo of the video Upload

    And change into the API key which is created onto

    https://developers.facebook.com

    Form there copy API key and put into following method

    - (void)viewDidLoad
    {
        facebook = [[Facebook alloc] initWithAppId:@"Your Key"];
    }
    

    And Also change into plist file also

    enter image description here

    Thanks and Regards,

    Neon Samuel

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

Sidebar

Related Questions

I want to upload video using uploadify newest version, but I failed. My code:
I am using youtube_it gem for uploading video on youtube.I want to upload videos
I want to upload video (basically large files) without using Flash Plugin. It would
I want to upload and store video files to my server using PHP. Could
I want to access camera to record video to upload, but have come across
I'm using CodeIgniter + Zend libraries. I want to let users upload videos to
I am using direct-upload method to upload video to youtube. Video successfully uploads but
My code can upload the video to YouTube successfully, I want to get the
I want to upload video from my app to the youtube. I am using
I am making an application in which i want to post videos on facebook.While

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.