简体   繁体   English

MVC,C#-TweetSharp-具有登录用户的帖子

[英]MVC, C# - TweetSharp - Post with logged in user

This is looks very simple, but not workis for me. 这看起来很简单,但对我而言却行不通。 The user is logged in to my application and to twitter too. 该用户也登录到我的应用程序和Twitter。

The exception is: The remote server returned an error: (400) Bad Request. 例外是:远程服务器返回错误:(400)错误的请求。

 var twitterStatus = twitterService.SendTweet(new SendTweetOptions() { Status = message });

maybe I have to use this too ? 也许我也必须使用这个? twitterService.AuthenticateWith(_accessToken, _accessTokenSecret); twitterService.AuthenticateWith(_accessToken,_accessTokenSecret);

but how can I get the logged in user's accestoken and accesstoken security for this ? 但是我如何获得已登录用户的accestoken和accesstoken的安全性呢?

Thanks in advance. 提前致谢。

Tweetsharp is not longer beeing maintained. Tweetsharp不再被维护。 I have used it myself in the past but I was forced to switch. 我过去曾经使用过它,但是我不得不切换。 Now I use Linq2Twitter. 现在,我使用Linq2Twitter。 There are ways to fix this but I have not tried this since it is no longer being developed. 有一些方法可以解决此问题,但由于它已不再开发,因此我没有尝试过。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM