If you want to reload a specific URL after the facebook popup is closed to prevent it from getting stuck on a blank page, you can use this code.
First enable UIWebViewDelegate and set the delegate somewhere in your code.
[yourwebView setDelegate:self]
Then use the shouldStartLoadWithRequest method to check the request URL for close_popup.php, which is used by Facebook to close their popup.
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { NSString *urlString = [NSString stringWithFormat:@"%@", request]; if ([urlString rangeOfString:@"close_popup.php"].location == NSNotFound) {
Tasik source share