Facebook Graph API Crashing My App
<p>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”.</p>

<p>I'm using the code below .But image is post to Facebook.</p>

<p>NSMutableDictionary *variables = [NSMutableDictionary dictionaryWithCapacity:2]; </p>

<pre><code>//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 &amp; photo albums...");
</code></pre>

<p>Plz help me for solving this problem.</p>
