问题描述
我有Facebook应用程序要发布到Facebook墙上.
将Facebook SDK 3.01与C#.NET结合使用 [ ^ ]
这还有适用于Twitter的其他任何应用程序.
Hi,
I got facebook application to post on facebook wall.
Using Facebook SDK 3.01 with C#.NET[^]
This there any other application like this for Twitter.
推荐答案
Hi,
To develop a twitter application for update tweets.
1.转到此 http://www.twitterizer.net/ [ ^ ]网站.
2.下载源代码.在其中获取dll文件(Twitterizer2.dll和Twitterizer.Data.dll).
3.
1. Go to this http://www.twitterizer.net/[^] website.
2.Download the source code. In that take dll files (Twitterizer2.dll and Twitterizer.Data.dll).
3.
use;
using Twitterizer;
using Twitterizer.Core;
using Twitterizer.Entities;
using Twitterizer.Data;
OAuthTokens令牌=新的OAuthTokens();
在按钮上单击:
OAuthTokens tokens = new OAuthTokens();
at button click:
try
{
tokens.AccessToken = "";
tokens.AccessTokenSecret = "";
tokens.ConsumerKey = "";
tokens.ConsumerSecret = "";
TwitterResponse<TwitterStatus> tweetResponse = TwitterStatus.Update(tokens, textBox1.Text);
}
catch
{
}
4.要获取令牌,请在Twitter的 https://dev.twitter.com/blog/tweets-和按钮 [ ^ ].
创建应用程序后,请设置读写".
OAuth工具选择为发布".保存所有这些后,转到详细信息",然后单击重新创建我的访问令牌".使用这些令牌并在您的Twitter上发布.
4. To get tokens, create an application in twitter at https://dev.twitter.com/blog/tweets-and-buttons[^].
After create an application make at setting make Read and Write.
OAuth tool select as "Post". After save all these go to Details and click on Recreate my access tokens. Use those tokens and post on you''r twitter.
这篇关于使用Winform在Twitter上发布消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!