Created
October 2, 2015 21:36
-
-
Save ajayjapan/7d579f23f33a8f1affbe to your computer and use it in GitHub Desktop.
1. Modify line 402 in RPSGameViewController.m 2.logging in and out multiple times 3. get 308 error
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
case 4: { // Login and logout | |
if ([FBSDKAccessToken currentAccessToken]) { | |
FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; | |
[login logOut]; | |
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; | |
// Clear up all the user defaults here. | |
NSString *appDomain = [[NSBundle mainBundle] bundleIdentifier]; | |
[[NSUserDefaults standardUserDefaults] removePersistentDomainForName:appDomain]; | |
[defaults synchronize]; | |
} else { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment