This article briefly describes how to authorize and post on Twitter using Twitterizer in ASP.Net with C#.
First of all you need to install Twitterizer using the package manager console or you can add reference manually.
Image 1.
Now you must create a new application on Twitter and fill in the required details and accept the terms and supply the security code.
Image 2.
Note: You need to enable Read and Write access type in the settings tab.
Image 3.
As you can see, the consumer key, secret and token has been generated in the details tab.
Now let's work on the UI.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Twitterizer;
public partial class PostOnTwitter : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
CheckAuthorization();
}
private void CheckAuthorization()
{
var oauth_consumer_key = " ";
var oauth_consumer_secret = " ";
if (Request["oauth_token"] == null)
{
OAuthTokenResponse reqToken = OAuthUtility.GetRequestToken(
oauth_consumer_key,
oauth_consumer_secret,
Request.Url.AbsoluteUri);
Response.Redirect(string.Format("http://twitter.com/oauth/authorize?oauth_token={0}",



vinod sainiPosted May 25, 2016, 3:12 AM
TwitterResponse<TwitterStatus> response1 = TwitterStatus.Update(accesstoken, "Testing!! ", new StatusUpdateOptions() { UseSSL = true, APIBaseAddress = "http://api.twitter.com/1.1/" });
vinod sainiPosted May 25, 2016, 3:11 AM
please use below code to post tweet
vinod sainiPosted May 25, 2016, 3:11 AM
hi Kuldeep Sahu
Kuldeep SahuPosted May 19, 2016, 4:32 AM
please give me help about that
Kuldeep SahuPosted May 19, 2016, 4:31 AM
.but response.Result give me Unauthorized and access level : Unavailable and content : {"errors":[{"message":"SSL is required","code":92}]} so please reply me
Aniket PatilPosted Aug 19, 2014, 3:25 AM
nice article..but response.Result give me Unauthorized and access level : Unavailable and content : {"errors":[{"message":"SSL is required","code":92}]} so please reply me
Kunal PatelPosted Oct 11, 2013, 8:10 AM
nice article.....but hide your consumer key and secret key. if you can double click on black line your consumer key and secret key visible.........:-)