Skip to content

Instantly share code, notes, and snippets.

@Kentzo
Created August 2, 2010 06:16
Show Gist options
  • Select an option

  • Save Kentzo/504194 to your computer and use it in GitHub Desktop.

Select an option

Save Kentzo/504194 to your computer and use it in GitHub Desktop.
if ([self class] == [FBPermissionDialog class]) {
NSData *body = [request HTTPBody];
if (body != nil) {
NSString *httpBody = [NSString stringWithUTF8String:[[request HTTPBody] bytes]];
NSRange range = [httpBody rangeOfString:@"Don%27t+Allow"];
if (range.location != NSNotFound) { // User clicks on "don't allow"
[self dismissWithSuccess:NO animated:YES];
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment