Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6804507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:28:28+00:00 2026-05-26T19:28:28+00:00

I have created an asp.net web page and I am using twitterizer.framework.dll. Below is

  • 0

I have created an asp.net web page and I am using twitterizer.framework.dll.

Below is my c# code.

    protected void btnTwitt_Click(object sender, EventArgs e)
    {

        //OAuthTokens tokens = new OAuthTokens();
        //tokens.AccessToken = "--REDACTED--";
        //tokens.AccessTokenSecret = "--REDACTED--";
        //tokens.ConsumerKey = "--REDACTED--";
        //tokens.ConsumerSecret = "--REDACTED--";

        /////

        //TwitterResponse<TwitterUser> showUserResponse = TwitterUser.Show(tokens, "twit_er_izer");

        string TwitterUserName = "My twitter username";
        string TwitterPassword = "my password";
       // string TwitterMessage = txtShout.Text;

        if (TwitterUserName != string.Empty && TwitterPassword != string.Empty)
        {
            try
            {
                //Twitter
               // TwitterAccount twitter = new TwitterAccount(TwitterUserName, TwitterPassword);
                //Twitter tw
                Twitter twitter = new Twitter(TwitterUserName, TwitterPassword);

                string TwitterMsg = txtShout.Text;
                if (txtShout.Text.Length > 120)
                {
                    TwitterMsg = TwitterMsg.Substring(0, 130) + "... For more update logon to DailyFreeCode.com";
                }
                else
                {
                    TwitterMsg = TwitterMsg + "... For more update logon to DailyFreeCode.com";
                }
                twitter.Status.Update(TwitterMsg);
                //Twitterizer.TwitterStatus.Update(tokens,TwitterMsg);


                lblTwitMsg.Text = "Your have shout successfully on http://twitter.com/" + TwitterUserName;

            }
            catch (Exception ex)
            {
                Response.Write("<b>" + ex.Message + "</b><br>" + ex.StackTrace);
            }
        }
    }

Now, I am getting error authorization failed.
On this line

twitter.Status.Update(TwitterMsg);

Plz help me, thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:28:28+00:00Added an answer on May 26, 2026 at 7:28 pm

    If you use the twitterizer framework you shouldn’t be passing the username/password. You need to fill:

    OAuthTokens tokens = new OAuthTokens();
    tokens.AccessToken = "XXX";
    tokens.AccessTokenSecret = "XXX";
    tokens.ConsumerKey = "XXX";
    tokens.ConsumerSecret = "XXX";
    

    you can do this by using the following three methods from the framework:

    1:

    public static Uri BuildAuthorizationUri(
        string requestToken
    )
    

    2:

    public static OAuthTokenResponse GetRequestToken(
        string consumerKey,
        string consumerSecret,
        string callbackAddress
    )
    

    3:

    OAuthTokenResponse accessToken = OAuthUtility.GetAccessToken(consumerKey, consumerSecret, requestToken, verifier);
    

    look it up here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a web page (ASP.NET) that includes a stylesheet to mimic Dynamics
I have the following scenario. I have created an ASP.NET web application (framework 3.5)
We have created a web application, using ASP.NET, that allows users to upload documents
I 'm new to the asp.net. I have created one web page in that
I have web page in ASP.NET. I have created Tree View control with jQuery.
I have created an ASP.NET Webforms web application which basically inetracts with the code
I have created a new MVC2 project using the ASP.NET MVC2 Web Application, which
I have a website created with ASP.NET and a web service, both using FormsAuthentication
In an ASP.NET 3.5 application, I have created an ashx handler as below: using
I have created a Web Application in asp.net 2.0. which is working fine on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.