i downloaded the latest repo with pod and setup according to docs. i wasn't able to call login from twitter though i was able to search timeline etc.
i set up twitter like this:
Should have been able to login to twitter after setting api sercret and api key.
Actual behavior
xcode is throwing this error "Twitterkit 3.0 'TWTRInvalidInitializationException' error in ios
"
Steps to reproduce the behavior
download twitter kit 3.4.0 from pod.
do all installation setups.
add the following code in view controller view did load method:
TWTRLogInButton logInButton = [TWTRLogInButton buttonWithLogInCompletion:^(TWTRSession session, NSError *error) {
if (session) {
NSLog(@"signed in as %@", [session userName]);
} else {
NSLog(@"error: %@", [error localizedDescription]);
}
}];
logInButton.center = self.view.center;
[self.view addSubview:logInButton];
i downloaded the latest repo with pod and setup according to docs. i wasn't able to call login from twitter though i was able to search timeline etc. i set up twitter like this:
// Info.plist
Expected behavior
Should have been able to login to twitter after setting api sercret and api key.
Actual behavior
xcode is throwing this error "Twitterkit 3.0 'TWTRInvalidInitializationException' error in ios "
Steps to reproduce the behavior
download twitter kit 3.4.0 from pod. do all installation setups. add the following code in view controller view did load method: TWTRLogInButton logInButton = [TWTRLogInButton buttonWithLogInCompletion:^(TWTRSession session, NSError *error) { if (session) { NSLog(@"signed in as %@", [session userName]); } else { NSLog(@"error: %@", [error localizedDescription]); } }]; logInButton.center = self.view.center; [self.view addSubview:logInButton];