Hello. I am trying to implement login with Twitter. I followed the setup guide, so i have the consumer key, consumer secret and the url scheme up and ready.
The problem that I have is that the completion block of loginWithCompletion isn’t called. So i can’t present error messages, like “User allowed permission to system accounts but there were none set up.”, to the user. Thanks in advance
[[Twitter sharedInstance] logInWithCompletion:^(TWTRSession * _Nullable session, NSError * _Nullable error) {
if (error) {
NSLog(@"twitter error: %@", error.localizedDescription);
}
//
NSMutableDictionary* parameters = [[NSMutableDictionary alloc] init];
[parameters setObject:session.authToken
forKey:@"access_token"];
[parameters setObject:session.authTokenSecret
forKey:@"access_secret"];
[_WSM loginUserWithParameters:parameters
forSocialMedia:SocialMediaTwitter
andResult:^(WebServiceResponse *response, id responseObject, NSError *error) {
}];
}];