title: How to cancel a video upload in progress using the Facebook iOS SDK?
body: <p>I'm using the Facebook iOS SDK to post videos from my app to the user's facebook.</p>
  
  <p>I'm trying to allow the user to cancel the upload after the upload has started.</p>
  
  <p>These are the methods that starts the upload:</p>
  
  <pre><code>- (void)startUpload
  {   
      NSArray* permissions = [[NSArray alloc] initWithObjects:
                              @"publish_stream", nil];
      [facebook authorize:permissions];
      [permissions release];
  }
  
  - (void)fbDidLogin
  {
      NSString *filePath = [videoNSURL path];
  
      NSData *videoData = [NSData dataWithContentsOfFile:filePath];
      NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                     videoData, @"video.mov",
                                     @"video/quicktime", @"contentType",
                                     videoTitle, @"title",
                                     videoDescription, @"description",
                                     nil];
      [facebook requestWithGraphPath:@"me/videos"
                           andParams:params
                       andHttpMethod:@"POST"
                         andDelegate:self];
  }
  </code></pre>
  
  <p>I cannot find any methods inside <code>Facebook.h</code> that comes with the Facebook iOS SDK that allows me to cancel the upload.</p>
  
  <p>Even if I do a <code>[facebook release]</code>, it will still not cancel the FBSession which is trying to upload the video. Which means I'll get a <code>exc_bad_access</code> when the upload is complete when FBSession tries to inform the <code>facebook</code> object that the upload is complete.</p>