Skip to content

Instantly share code, notes, and snippets.

@ajayjapan
Created October 2, 2015 21:36
Show Gist options
  • Save ajayjapan/7d579f23f33a8f1affbe to your computer and use it in GitHub Desktop.
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
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