How do i get the twitterkit to show my authorization through email and password in the webview of xcode? im using this code -
@IBAction func TwitterButtonTapped(sender: AnyObject) {
Twitter.sharedInstance().logInWithViewController(self, methods: .WebBased) { (session, error) in
if (error != nil) {
print("error: \(error!.localizedDescription)")
} else {
print("signed in as \(session!.userName)")
}
}
}//end of func
i keep receiving this error message
"[TwitterKit] did encounter error with message "Error obtaining user auth token.": Error Domain=TWTRLogInErrorDomain Code=-1 "<?xml version="1.0" encoding="UTF-8"?>
<hash>
<error>Desktop applications only support the oauth_callback value 'oob'</error>
<request>/oauth/request_token</request>
</hash>
" UserInfo={NSLocalizedDescription=<?xml version="1.0" encoding="UTF-8"?>
<hash>
<error>Desktop applications only support the oauth_callback value 'oob'</error>
<request>/oauth/request_token</request>
</hash>
}
error: Request failed: unauthorized (401)"