我使用這些教程http://www.raywenderlich.com/1488/how-to-use-facebooks-new-graph-api-from-your-iphone-app 實現Facebook的圖形API在iPhone,但是當我拍了拍Facebook登錄BUTTOM得到錯誤的NSLog的文件中像這樣Facebook的圖形API教程得到錯誤
2013-01-09 18:50:54.509 FBFun[3279:11303] *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> Application tried to present modally an active controller <ViewController: 0x75446a0>.
我嘗試去解決問題張貼此鏈接
New error in iOS 5: WebKit discarded an uncaught exception 的答案是這樣的鏈接
-(void)checkLoginRequired:(NSString *)urlString {
NSLog(@"Url: %@",urlString);
if ([urlString rangeOfString:@"login.php"].location != NSNotFound && [urlString rangeOfString:@"refid"].location == NSNotFound) {
[_delegate displayRequired];
} else if ([urlString rangeOfString:@"user_denied"].location != NSNotFound) {
[_delegate closeTapped];
}
}
的答案,但我沒有succeddedķ indly人有答案關於這篇文章,請與我分享