【问题标题】:Posting to Twitter using SLComposeViewController not working on iOS 8 devices使用 SLComposeViewController 在 Twitter 上发帖无法在 iOS 8 设备上运行
【发布时间】:2015-08-07 23:31:03
【问题描述】:

我使用以下代码发布到 Twitter。

SLComposeViewController *tweetSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
[tweetSheet setInitialText:@"Sample post string"];
[self presentViewController:tweetSheet animated:YES completion:nil];

这在 iOS 7 设备上运行良好。对于 iOS 8 设备,点击发布按钮会显示此警报。

此外,控制台打印此消息plugin com.apple.share.Twitter.post invalidated

我浏览了这些链接

1) Can't send tweet anymore: plugin com.apple.share.Twitter.post invalidated

2) IOS7 - SLComposeViewController - Error posting to Twitter - cannot send tweet - connection failed

3)https://discussions.apple.com/thread/5275212

我确实注销并登录了设置-> Twitter 帐户。分享内容长度也不是问题。

还有其他人遇到/解决了这个问题吗?感谢任何帮助。谢谢。

更新:这适用于 iOS 8.3。不适用于 iOS 8.1.2

【问题讨论】:

  • 您是否按照您发布的链接中建议的设置检查了您的 Twitter 帐户?
  • 从 twitter 帐户设置中注销->twitter 并重新登录。每次发布推文时也要尝试更改内容。
  • @kmithi 已经尝试过了。

标签: objective-c iphone twitter ios8 slcomposeviewcontroller


【解决方案1】:

这个问题解决了

  1. 日期和时间设置为自动
  2. 语言已更改为英语印度(我的语言)
  3. 区域格式更改为印度(我的区域)

【讨论】:

    【解决方案2】:
    猜你喜欢
    • 2013-11-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-09
    • 2015-10-01
    • 2014-10-10
    • 2015-01-14
    相关资源
    最近更新 更多