Facebook integration
<p>I have a problem with the integration of the sharekit for facebook &amp; Twitter.</p>

<p>In my application i am not using the default actionsheet for the share functionality, instead this i have used two different buttons.One for Facebook &amp; other for Twitter.</p>

<p>I have a problem in the facebook sharing, when i press on the button share the post is shared but the view is not dismiss or hide it self.</p>

<p>To solve this problem i have changed the code in the FBDialog.m file.</p>

<pre><code>// UIWebViewDelegate

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request
    navigationType:(UIWebViewNavigationType)navigationType 
{

  NSURL* url = request.URL;

  if ([url.scheme isEqualToString:@"fbconnect"])

  {

    if ([url.resourceSpecifier isEqualToString:@"cancel"]) 
    {
      [self dismissWithSuccess:NO animated:YES];
    }

    else
    {
      [self dialogDidSucceed:url];
    }

    return NO;

  }

  else if ([url.resourceSpecifier isEqualToString:@"//www.facebook.com/connect/prompt_feed.php"])

  {

      NSLog(@"Share Url is:--&gt; %@ , %@",url.resourceSpecifier,url.scheme);

      [self dialogDidSucceed:url];    
      [self dismissWithSuccess:NO animated:YES];

      return YES;

  }


  else if ([_loadingURL isEqual:url])

  {

    return YES;

  }

  else if (navigationType == UIWebViewNavigationTypeLinkClicked) 
  {

    if ([_delegate respondsToSelector:@selector(dialog:shouldOpenURLInExternalBrowser:)])

    {

      if (![_delegate dialog:self shouldOpenURLInExternalBrowser:url])
      {
        return NO;
      }

    }

    [[UIApplication sharedApplication] openURL:request.URL];
    return NO;

  }

   else
   {

      NSLog(@"Data is:--&gt;  %@ , %@",url.resourceSpecifier,url.scheme);

      if ([url.resourceSpecifier isEqualToString:@"//www.facebook.com/connect/prompt_feed.php"])

      {

          NSLog(@"Share Url is:--&gt; %@ , %@",url.resourceSpecifier,url.scheme);
          [self dialogDidSucceed:url];    
          [self dismissWithSuccess:NO animated:YES];

          return NO;
      }

    return YES;

  }

}
</code></pre>

<p>but the problem is still there.</p>

<p>Please give me the appropriate solution.</p>
