+ (NSString *) simpleAuth {
[SimpleAuth authorize:@"instagram" completion:^(NSDictionary *responseObject, NSError *error) {
NSLog(@"plump: %@", responseObject);
NSString *accessToken = responseObject[@"credentials"][@"token"];
}];
return accessToken
}
trying to get my instagram accesstoken as a string so I can use it to download data in my swift viewcontroller file. I had to write simple auth in Objective C since it doesn't work for swift atm.