【发布时间】:2023-03-21 21:30:01
【问题描述】:
我在我的 iPhone 应用程序中使用以下代码在 facebook 上自动分享,但是当我点击分享按钮时,我的应用程序因EXC_BAD_ACCESS 消息而崩溃。
NSMutableDictionary *variables = [NSMutableDictionary dictionaryWithCapacity:4];
[variables setObject:@"Yours content to be shared" forKey:@"message"];
// share prepared content to fb
fb_graph_response = [fbGraph doGraphPost:@"me/feed" withPostVars:variables];
NSLog(@"postMeFeedButtonPressed: %@", fb_graph_response.htmlResponse);
提前帮帮我。
【问题讨论】:
-
看看你有没有得到变量中的数据?