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

  • Home
  • SEARCH
  • 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 8554911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:59:39+00:00 2026-06-11T14:59:39+00:00

I know how to post an image using the GRAPH API and I know

  • 0

I know how to post an image using the GRAPH API and I know how to post a comment using the same. But I can’t figure out how to post a photo and allow the user to also include a message/status with the photo (all posting on the user’s own wall).

This is the code that I am using to upload a photo from my app to user’s wall. The GRAPH API does not define what other keys I can specify in the param dictionary.

-(void) uploadPhotoToFacebook {
    NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                   imageView.image, @"picture", nil];

    [facebook requestWithGraphPath:@"me/photos"
                     andParams:params
                 andHttpMethod:@"POST"
                   andDelegate:self];
}

I have found ways to do this using the now deprecated Facebook API but that doesn’t help me.

Thanks for the help,

  • 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-11T14:59:40+00:00Added an answer on June 11, 2026 at 2:59 pm

    // Post a status update along with picture via the Graph API, and display an alert view
    with the results or an error.

    NSString *message =  @"This is status Message!";
    UIImage *image = [UIImage imageNamed:@"myPngImageToPost"];
    
    NSDictionary *params = [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:message, UIImagePNGRepresentation(image), nil] forKeys:[NSArray arrayWithObjects:@"message", @"picture", nil]];
    
    // use the "startWith" helper static on FBRequest to both create and start a request, with
    // a specified completion handler.
    [FBRequest startWithGraphPath:@"me/photos"
                     parameters:params
                     HTTPMethod:@"POST"
              completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
    
                  [self showAlert:message result:result error:error];
              }];
    

    The above code will show status update as well as image below your status message.

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

Sidebar

Related Questions

i see this post but i can't figure out any way to have a
I am using the Graph API for Facebook in order to post a message
To be clear, I know how to post an image to a user's wall
I know that it's possible to post an image in the wall of user
I am trying to post an image to facebook grap api using asp.net ,
I know there is this post , but I still want to know more
You know if you were to post you website into a status or comment
I would like to know how to submit POST data for a form using
Does anyone know how to insert a new post into Wordpress using sql?
I know the post seems long, but I'm sure there's a very simple solution.

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.