Retrieve Twitter AuthToken and Secret after successfully login in ASP.Net

Last Reply on Sep 07, 2018 02:57 AM By dharmendr

Posted on Sep 07, 2018 02:00 AM

Hi everyone,

Using the Twitter login component:

Works great!

One of our applications posts tweets to automated accounts.

How do we retreive the OAuthToken and OAuthTokenSecret values that are sent back to the DLL?




Posted on Sep 07, 2018 02:57 AM

Use below code to get the logged user in the key and secret.

protected void Get(object sender, EventArgs e)
    TwitterConnect twitter = new TwitterConnect();
    string key = twitter.OAuthToken;
    string secret = twitter.OAuthTokenSecret;