Instagram logout is not working in iphone?

I am integrated Instagram in iPhone,At first time login page display on my iPhone and after logout when again login than credentials are not Asking and directly login. i also 'nil' old credentials on logout and i also clear cookie at logout but it not working.when i delete cookie from safari then it work fine. how to solve it programetically.

Logout Button code as below

    IGAppDelegate* appDelegate = (IGAppDelegate*)[UIApplication sharedApplication].delegate;
    [cookies deleteCookie:cookie];

// clear cookie

 NSHTTPCookieStorage* cookies = [NSHTTPCookieStorage sharedHTTPCookieStorage];
 NSArray* instagramCookies = [cookies cookiesForURL:[NSURL URLWithString:@""]];

    NSLog(@"Array is == %@",instagramCookies);

    for (NSHTTPCookie* cookie in instagramCookies) 
        [cookies deleteCookie:cookie];

// accessToken set nil

    [[NSUserDefaults standardUserDefaults] setObject:nil forKey:@"accessToken"];
    [[NSUserDefaults standardUserDefaults] synchronize];
    [self.navigationController popViewControllerAnimated:YES];


We have to use WebView instead of safari so this problem will be solved. I have made some changes in crino's sdk in which this problem has been resolved. You can get code from here.

Need Your Help

How to fix accidental encoding problems for some records in an MySQL database?

mysql encoding character-encoding

Over the years the databases I use for my research have been migrated from SyBase to MySQL to PostgreSQL back to MySQL.

Adding multiple rows in an existing dataframe

python pandas ipython

Hi I'm learning data science and am trying to make a big data company list from a list with companies in various industries.