while I am trying to login into Twitter through the following code, in the session I got nil and in the error, I got the following error
Error Domain=TWTRNetworkingErrorDomain Code=-1011 "Request failed: forbidden (403)" UserInfo={NSLocalizedFailureReason=Twitter API error : <?xml version="1.0" encoding="UTF-8"?><errors><error code="415">Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings</error></errors> (code (null)), TWTRNetworkingStatusCode=403, NSErrorFailingURLKey=https://api.twitter.com/oauth/request_token, NSLocalizedDescription=Request failed: forbidden (403)}
Code
let logInButton = TWTRLogInButton(logInCompletion: { session, error in
if (session != nil) {
print(session?.userName)
} else {
print(error?.localizedDescription)
}
})
logInButton.center = self.view.center
self.view.addSubview(logInButton)