Created
June 17, 2010 15:55
-
-
Save gfontenot/442306 to your computer and use it in GitHub Desktop.
Modification for FBDialog.m to trash cookies before asking permissions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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