No overload for method 'GetAccessToken' takes 3 arguments
No overload for method 'GetRequestToken' takes 2 arguments
OAuthTokenResponse RequestToken = OAuthUtility.GetRequestToken(consumerKey, consumerSecret);
Cannot implicitly convert type 'Twitterizer.OAuthTokenResponse' to 'OAuthTokenResponse'
protected void imgbtnTwitter_Click(object sender, ImageClickEventArgs e) { // bool condition = forceLoginCheckbox.Checked; //TwitterConsumer.StartSignInWithTwitter(condition).Send(); // add these to web.config or your preferred location var consumerKey = ConfigurationManager.AppSettings["consumerKey"]; var consumerSecret = ConfigurationManager.AppSettings["consumerSecret"]; if (Request.QueryString["oauth_token"] == null) { //Step 1: Get Request Token OAuthTokenResponse RequestToken = OAuthUtility.GetRequestToken(consumerKey, consumerSecret); //Step 2: Redirect User to Requested Token Response.Redirect("http://twitter.com/oauth/authorize?oauth_token=" + RequestToken.Token); } else { //For Valid User string Oauth_Token = Request.QueryString["oauth_token"].ToString(); var accessToken = OAuthUtility.GetAccessToken(consumerKey, consumerSecret, Oauth_Token); } }
GetRequestToken
GetAccessToken
Twitterizer.OAuthTokenResponse RequestToken = OAuthUtility.GetRequestToken(consumerKey, consumerSecret);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)