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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:51:44+00:00 2026-06-09T11:51:44+00:00

In my application. I successfully post a image on my Facebook wall (image type

  • 0

In my application. I successfully post a image on my Facebook wall (image type JPEG Type). It’s work fine in Simulator and and Device also.

But the problem is that When I Capture Image from my iPhone or select an image from library which is captured by camera. It is not Posted on Facebook Wall.

on other hand when i choose any jpeg image (downloaded by internet) from my iPhone library. It post on wall.

In my opinion there is image format problem. Please Guide me

Thanks

My code is here.

-(IBAction)clickButtonClicked
{
//    For link post

NSString *Message = [NSString stringWithFormat:@"Testing Iphone App : \"http://www.google.com\" "];    


DataClass *obj=[DataClass getInstance]; 

UIImage *image=[[UIImage alloc]init ];

image= obj.imgFinalImage;

NSMutableDictionary *params1 = [[NSMutableDictionary alloc]init];


[params1 setObject:image forKey:@"source"];
[params1 setObject:Message forKey:@"message"];

NSString *post=@"/me/photos";


[[appDelegate facebook] requestWithGraphPath:post andParams:params1 andHttpMethod:@"POST" andDelegate:self];

UIAlertView  *alert = [[UIAlertView alloc] initWithTitle:@"Message!" message:@"Invitation Send Sucessfully" delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
[alert show];
[alert release];


}
  • 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-09T11:51:46+00:00Added an answer on June 9, 2026 at 11:51 am

    My guess is that you pass the image in the wrong property:

    NSMutableDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:
                        sobj.imgFinalImage, @"picture",
                        Message, @"caption",
                         nil];
    
    [[appDelegate facebook] requestWithMethodName:@"photos.upload"
                       andParams:params
                       andHttpMethod:@"POST"
                      andDelegate:self];
    

    Then make sure you implement the delegate of Facbook request to check if the image is uploaded.

    With the graph API you can’t send a UIImage directly, you need to send the NSData representation of the UIImage:

    NSMutableDictionary *params1 = [[NSMutableDictionary alloc]init];
    NSData *imageDate = UIImagePNGRepresentation(obj.imgFinalImage);
    
    [params1 imageDate forKey:@"source"];
    [params1 setObject:Message forKey:@"message"];
    
    NSString *post=@"/me/photos";
    
    
    [[appDelegate facebook] requestWithGraphPath:post andParams:params1 andHttpMethod:@"POST" andDelegate:self];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have successfully implemented a network application in visual CLR project using boost.asio. but
I can successfully post XML data to my service, but, trying to do the
I'm sending an image file from an iPhone application to a http Post application.
I'm creating an app with login window. The application builds successfully but as soon
I successfully integrated a FaceBook application into my project (the regular FaceBook page where
i have created an application where user can post message to their own wall
I want to post score points using facebook graph api, from my android application
I am successfully posting an image to my Google AppEngine application using the following
I have a .NET 3.5 Setup Package Project which installs my application successfully. The
In my application,I successfully managed to encode/decode H264 video and Speex audio using libavcodec

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.