[BUG]TWTRComposer not working after upgrade to 3.0.3

ios

#1

Previously i installed twitter sdk through fabric. Now i upgrade it to 3.0.3, Now i am facing problem with composing tweet.

i am using this code:

// Swift
let composer = TWTRComposer()

composer.setText("just setting up my Twitter Kit")
composer.setImage(UIImage(named: "twitterkit"))

// Called from a UIViewController
composer.show(from: self.navigationController!) { (result in
    if (result == .done) {
        print("Successfully composed Tweet")
    } else {
        print("Cancelled composing")
    }
}

iOS SDK TWTRComposer counting image and URL against character count
TwitterKit and iOS bitcode failing - Cannot build for ITC
[Bug] Twitter Kit iOS 3.0.4 login fails to call completion block on iOS 9
#2

What is the error you are encountering?


#3

[TwitterKit] did encounter error with message “Error obtaining user auth token.”: Error Domain=TWTRLogInErrorDomain Code=-1 “<?xml version="1.0" encoding="UTF-8"?>

Desktop applications only support the oauth_callback value ‘oob’
/oauth/request_token

” UserInfo={NSLocalizedDescription=<?xml version="1.0" encoding="UTF-8"?>

Desktop applications only support the oauth_callback value ‘oob’
/oauth/request_token

}

Now i am getting this error after upgrade to 3.0.3


#4

Do you have a user context already - have you checked that the user is logged in?


#5

are you talking about login in my device twitter app ?

i have already login in my twitter app in my device. When i checking with following condition it always return to else block.

if ([[Twitter sharedInstance].sessionStore hasLoggedInUsers]) {
   
} else {
      
}

My requirement is compose tweet from my app. if the user have twitter account in their device otherwise it will ask user to login .