Skip to content

Instantly share code, notes, and snippets.

@gfontenot
Created June 17, 2010 15:55
Show Gist options
  • Save gfontenot/442306 to your computer and use it in GitHub Desktop.
Save gfontenot/442306 to your computer and use it in GitHub Desktop.
Modification for FBDialog.m to trash cookies before asking permissions
if ([url isEqualToString:@"http://www.facebook.com/login.php"]) {
[cookies setCookie:testCookie]; // Create the test_cookie as required by login.php
} else if ([url isEqualToString:@"http://www.facebook.com/connect/prompt_permission.php"]) {
NSArray *cookieJar = [cookies cookies];
for (id aCookie in cookieJar) {
[cookies deleteCookie:aCookie];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment