I am trying to load a UIWebView
with the Facebook OAuth authorization URL and I am using the following code. When my UIWebView
loads with Facebook logi
Are you using the Ray Wenderlich code? (FBFunLoginDialog).. I found that this fixes it:
-(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];
}
}
I have the same problem. I try to present view controller just after dismissing.
[self dismissModalViewControllerAnimated:YES];
When I try to do it without animation it works perfectly. use dismissViewControllerAnimated:completion: