How to open twitter in browser(Without asking userid & passward) From my Desktop Application


#1

I Want to open twitter in browser(Without asking userid & passward) From my Desktop Application using ConsumerKey, ConsumerSecret, token, tokensecret. Is this possible


#2

Download the dll and use this code

protected void btnPostTweet_Click(object sender, EventArgs e)
{
OAuthTokens tokens = new OAuthTokens();
tokens.AccessToken = “xxxxxxxx”;
tokens.AccessTokenSecret = “xxxxxx”;
tokens.ConsumerKey = “xxxxxx”;
tokens.ConsumerSecret = “xxxxxx”;

        var tweetResponse = TwitterStatus.Update(tokens, "Hello, #Twitterizer");
        if (tweetResponse.Result == RequestResult.Success)
        {
            // Tweet posted successfully!
        }
        else
        {
            // Something bad happened
        }                       

}


#3

Thank You for Your reply.
But Here my requirement :
I want the links in my desktop application that forwards a user into
twitter.com pages, and it would be handy to automate login operation.


#4

You cannot pass state from the API into a browser for authentication. They are separate.