2
- (void)apiDialogFeedUser {
SBJSON *jsonWriter = [[SBJSON new] autorelease];
NSArray* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys:@"test",@"name",@"http://test.co.in",@"link", nil], nil];
NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks];
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"test", @"name",
@"test", @"caption",
@"test", @"description",
@"http://test.co.in", @"link",
@"http://test.co.in/images/b_freequote.jpg", @"picture",
actionLinksStr, @"actions",
nil];
Demo1AppDelegate *delegate = (Demo1AppDelegate *)[[UIApplication sharedApplication] delegate];
[[delegate facebook] dialog:@"feed"
andParams:params andDelegate:self];
}
我正在使用上面的代碼發佈到Facebook牆。但在對話框打開後突然拋出exec_bad_access。它指向decodeGIFFrame。我不知道它是什麼。有人可以提出問題是什麼嗎?希望大家都明白我的問題。iPhone SDK FBConnect webcore decodeGIFFrame exec_bad_access
在此先感謝。
更新:
我發現問題是與Facebook AppId。當我用Hackbook id試用時,這個問題消失了。但我不知道我的AppId中有哪些設置會導致此問題。任何想法?
我在回答我自己的問題。當我通過developer.facebook.com更改了我的應用程序的默認徽標時,它解決了我的問題。它真的工作! 希望這會幫助別人。 – Matt
+1爲了解Facebook的監督。這個崩潰只發生在iOS 4.0上。 – Andy