Note that there are some explanatory texts on larger screens.

plurals
  1. POApp get crash when i post to Facebook through Graph-API for iPhone
    text
    copied!<p>I'm currently integrating this API <a href="https://github.com/reallylongaddress...book-Graph-API" rel="nofollow">https://github.com/reallylongaddress...book-Graph-API</a></p> <p>The integration all works fine and i'm using the "post" method to post things to peoples walls, all works fine. The code from the original API does the same, but below is my modified version...</p> <pre><code>NSMutableDictionary *variables = [NSMutableDictionary dictionaryWithCapacity:6]; [variables setObject:strMessageFb forKey:@"message"]; [variables setObject:@"http://fundaciomiro-bcn.org" forKey:@"link"]; [variables setObject:@"Joan Miró" forKey:@"name"]; [variables setObject:@"I am using Joan Miró's iPhone App, The Ladder of Escape, that allows me to take a tour through the artist's Barcelona. Download it now!" forKey:@"description"]; [variables setObject:@"http://nostrostudio.com/clientes/miro/ICONO_512x512.png" forKey:@"picture"]; [variables setObject:@"L'escala de l'evasió" forKey:@"caption"]; FbGraphResponse *fb_graph_response = [fbGraph doGraphPost:@"me/feed" withPostVars:variables]; NSLog(@"postMeFeedButtonPressed: %@", fb_graph_response.htmlResponse); </code></pre> <p>But my Problem is,</p> <p>Its perfectly working on simulator. but when i trying to run on real device i am able to run this script twice. The third time it crashes. I have a feeling it has something to do with the Dictionary.</p> <p>Any help anyone?</p> <p>[Also This Post method doesn't working on IOS 5.0 emulator. When i try to post something app get crash but content successfully posted on Facebook.]</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload