Twitter posting using SLComposeViewController not working on iOS 8 devices
I am using the following code to post to Twitter.
SLComposeViewController *tweetSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
[tweetSheet setInitialText:@"Sample post string"];
[self presentViewController:tweetSheet animated:YES completion:nil];
This works great on iOS 7 devices. For iOS 8 devices, clicking the Message button shows this warning.
Also, the console prints this message plugin com.apple.share.Twitter.post invalidated
I have looked at these links
1) Unable to send tweet: plugin com.apple.share.Twitter.post is invalid
2) IOS7 - SLComposeViewController - Twitter error message - unable to send tweet connection failed
3) https://discussions.apple.com/thread/5275212
I logged out and registered in settings -> Twitter. It is also not a problem to use content length.
Is anyone else experiencing / solving this problem? Appreciate any help. Thank.
Update: . This works on iOS 8.3. Doesn't work on iOS 8.1.2
source to share