Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
当我通过iPhone的图形API发布到Facebook时,应用程序崩溃_Iphone_Facebook Graph Api_Facebook Oauth - Fatal编程技术网

当我通过iPhone的图形API发布到Facebook时,应用程序崩溃

当我通过iPhone的图形API发布到Facebook时,应用程序崩溃,iphone,facebook-graph-api,facebook-oauth,Iphone,Facebook Graph Api,Facebook Oauth,我目前正在集成这个API 集成一切都很好,我用“post”方法把东西贴到墙上,一切都很好。 原始API中的代码也执行相同的操作,但下面是我的修改版本 NSMutableDictionary *variables = [NSMutableDictionary dictionaryWithCapacity:6]; [variables setObject:strMessageFb forKey:@"message"]; [variables setObject:@"http://fundaciom

我目前正在集成这个API

集成一切都很好,我用“post”方法把东西贴到墙上,一切都很好。 原始API中的代码也执行相同的操作,但下面是我的修改版本

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);
但我的问题是

它在模拟器上工作得很好。但当我尝试在真正的设备上运行时,我可以运行这个脚本两次。第三次它崩溃了。我觉得这和字典有关

有人帮忙吗


[此外,此发布方法在IOS 5.0 emulator上不起作用。当我尝试发布应用程序崩溃但内容成功发布到Facebook上时。]

您没有使用官方SDK,这是


您还可以发布一些崩溃日志…

我也使用了该sdk。面对这么多问题。这是通过graph api进行的旅行…您提到应用程序崩溃了。你有崩溃日志吗?谢谢你的回复。我的问题解决了。FbGraph类文件中doGraphPost方法返回值存在问题。现在它在设备和模拟器上都可以正常工作了。我的问题解决了。FbGraph类文件中doGraphPost方法返回值存在问题。现在它在设备和模拟器上都可以正常工作了。是的,我也有同样的问题。你能把正确的密码寄出去吗?