Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter kit gives error despite successful login

I am using Twitter kit to log in with Twitter. After I have been logged in into Twitter, I get the following error in log.

Code to login:

- (IBAction)btnTwitterLogin_pressed:(id)sender
{
    [[Twitter sharedInstance] logInWithCompletion:^
     (TWTRSession *session, NSError *error) {
         if (session) 
         {
             // This session is then used to make Twitter API requests.
             NSLog(@"%@", [session userID]);
             NSLog(@"%@", [session userName]);
             NSLog(@"%@", [session authToken]);
             NSLog(@"%@", [session authTokenSecret]);

             [self requestUserEmail];
         }
         else 
         {
             NSLog(@"Error: %@", [error localizedDescription]);
         }
     }];
}

Error log:

[TwitterKit] didEncounterError:withMessage: Invalid parameter not satisfying: error

I couldn't find the reason. Have anyone faced the same issue ?

like image 381
NSPratik Avatar asked May 28 '15 12:05

NSPratik


1 Answers

This seems to be fixed in the current version of Twitter Kit.

like image 190
Steven Hepting Avatar answered Sep 28 '22 13:09

Steven Hepting