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];
}
}