Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.54 KB  |  hits: 35  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Facebook dialog failed with error: The operation couldn’t be completed. (NSURLErrorDomain error -999.)
  2. - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
  3. // 102 == WebKitErrorFrameLoadInterruptedByPolicyChange
  4. NSLog(@"FBDialog webView didFailLoadWithError:%@ %d",error.domain,error.code);
  5. if ([error.domain isEqualToString:@"NSURLErrorDomain"] && error.code == -999)
  6.     return;
  7.  
  8. if ([error.domain isEqualToString:@"WebKitErrorDomain"] && error.code == 102)
  9.     return;
  10.  
  11. [self dismissWithError:error animated:YES];
  12. }