【问题标题】:send tweets using TweetSharp使用 TweetSharp 发送推文
【发布时间】:2013-10-22 04:47:08
【问题描述】:

目前,我必须在 Twitter 帐户上发布一条推文(消息)。我正在使用 TweetSharp 2.3.1。

以下是我的代码:

var  service = new TwitterService(ConsumerKey, ConsumerSecret);
service.AuthenticateWith(Token, TokenSecret);
TwitterStatus result = service.SendTweet(new SendTweetOptions
{
    Status = "Hello, world!"
});

但是,每次我得到错误:在 mscorlib.dll 中发生“System.StackOverflowException”类型的未处理异常。虽然我的凭据正确,但在发布时遇到了错误。

如果有人知道,请帮助我...

【问题讨论】:

  • 您是否检查了您是否具有读取、写入和直接消息访问级别并最终正常工作?没有标注答案?对我来说不工作

标签: c# send tweets tweetsharp


【解决方案1】:

似乎不再维护 TweetSharp。 Twitter API 1.1 有很多问题,使用它时您可能会遇到一些异常。我建议您尝试安装 Tweetsharp 的 TweetSharp-Unofficial 版本,然后尝试运行您的应用程序。我在使用 TweetSharp 时遇到了类似的问题,该解决方案解决了我的所有问题。

【讨论】:

    【解决方案2】:

    您需要检查您是否具有读取、写入和直接消息访问级别

    如果不是,则将访问级别更改为读、写和直接消息并重新创建访问令牌

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-03-15
      • 2013-06-11
      • 2015-09-13
      • 1970-01-01
      • 2016-12-22
      • 2015-10-28
      • 2016-08-09
      相关资源
      最近更新 更多