简体   繁体   English

在WP7中发布Twitter链接

[英]Posting Link to Twitter in WP7

I want to post URL to twitter from my WP7 app is there any way I could do it in C# with out using the web authentication ? 我想从我的WP7应用程序发布到Twitter的URL有什么办法可以在C#中使用Web身份验证吗?

The use case is some thing like. 用例有点像。

1) I upload a picture to flickr website and get the URL. 1)我将图片上传到flickr网站并获取URL。

2) I want to post the URL in Twitter . 2)我想在Twitter上发布URL。 It should just ask me the username and password then postit on my twitter 它应该只是问我用户名和密码,然后在我的推特上发布

any comments or suggestions would be great 任何意见或建议都会很棒

On Mango you can use the ShareLinkTask which lets a user share with any linked social networking site on the phone. 在芒果上,您可以使用ShareLinkTask ,它允许用户与手机上任何链接的社交网站共享。 Facebook, Twitter, LinkedIn and Windows Live. Facebook,Twitter,LinkedIn和Windows Live。

If you are looking on 7.0 apps then you will need to go down the oAuth etc path. 如果您正在寻找7.0应用程序,那么您将需要沿着oAuth等路径前进。 Look at TweetSharp 看看TweetSharp

Edit: Code sample for ShareLinkTask 编辑: ShareLinkTask代码示例

var task = new ShareLinkTask() {
  LinkUri = new Uri("http://www.example.com", UriKind.Absolute),
  Message = "a message",
  Title = "a title"
};
task.Show();

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

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