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.

enter image description here

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

+3


source to share


2 answers


This issue is resolved if



  • Date and time are set automatically
  • Language changed to English India (my language)
  • Region format changed to India (my region)
+1


source


Please go through this link and read all comments and check it



http://forums.imore.com/ask-question/287207-when-tweeting-photo-i-get-tweet-cannot-sent-because-connection-twitter-failed.html

0


source







All Articles