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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:10:37+00:00 2026-06-05T03:10:37+00:00

he problem is when i come to use the post function a section time.

  • 0

he problem is when i come to use the post function a section time. The app will crash out kicking out the error below…
Program received signal: “EXC_BAD_ACCESS”.

I’m using the code below .But image is post to Facebook.

NSMutableDictionary *variables = [NSMutableDictionary dictionaryWithCapacity:2];

//create a UIImage (you could use the picture album or camera too)

NSData *imageData = UIImageJPEGRepresentation(imgView.image, 8.0);
UIImage *picture = [UIImage imageWithData:imageData];

//create a FbGraphFile object insance and set the picture we wish to publish on it
FbGraphFile *graph_file = [[FbGraphFile alloc] initWithImage:picture];

//finally, set the FbGraphFileobject onto our variables dictionary....
[variables setObject:graph_file forKey:@"file"];    
[variables setObject:@"i'm testing my iPhone App" forKey:@"message"];

//the fbGraph object is smart enough to recognize the binary image data inside the FbGraphFile
//object and treat that is such.....
FbGraphResponse *fb_graph_response = [fbGraph doGraphPost:@"117795728310/photos" withPostVars:variables];
NSLog(@"postPictureButtonPressed:  %@", fb_graph_response.htmlResponse);    
NSLog(@"Now log into Facebook and look at your profile & photo albums...");

Plz help me for solving this problem.

  • 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-05T03:10:41+00:00Added an answer on June 5, 2026 at 3:10 am
     NSMutableDictionary *variables = [NSMutableDictionary dictionaryWithCapacity:1];
    
        NSData *dataImage=UIImageJPEGRepresentation(FilterImage, 1.0);
        UIImage *picture =[[UIImage alloc]initWithData:dataImage];
        FbGraphFile *graph_file = [[FbGraphFile alloc] initWithImage:picture];
        [variables setObject:graph_file forKey:@"file"];
        //[variables setObject:[NSString stringWithFormat:@"Testing App"] forKey:@"message"];
        [fbGraph doGraphPost:@"me/photos" withPostVars:variables];
        NSLog(@"Now log into Facebook and look at your profile & photo albums...");
        [picture release];
        picture=nil;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have come acrooss a very strange problem. I use a POST request for
I come across a strange problem dealing with python isdigit function. For example: >>>
Below are three pictures showcasing the problem. I will go into more detail right
This is a problem I come across every so often; I always end up
By some coincidence this problem has come up twice in the last week. A
I have come accross a strange problem where magento seems to have stopped writting
I've come across an interesting problem in the following line of code: <img style=background-image:url(Resources/bar.png);
I've come across an intriguing problem. I have an application made of several assemblies.
I have come to a problem, wich I have no idea how to solve.
I have come across an annoying problem while writing some PHP4 code. I renamed

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.