---
title: "TweetSharp GetRequestToken"  
description: "TweetSharp GetRequestToken"  
author: "Royce Roy"  
published: 2013-09-03  
updated: 2013-09-03  
canonical: https://www.mindstick.com/forum/1432/tweetsharp-getrequesttoken  
category: "twitter api"  
tags: ["twitter api"]  
reading_time: 1 minute  

---

# TweetSharp GetRequestToken

Hi Guys

I am using TweetSharp Api and I have some problems concerning the [service](https://www.mindstick.com/articles/105963/online-thesis-writing-service-for-college-kids-with-disabilities).GetRequestToken().

For example in my [Asp.net C#](https://www.mindstick.com/forum/12726/how-to-retrieve-file-version-of-assembly-information-window-in-asp-dot-net-c-sharp) [function](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) I do a simple sendTweet().

On my Tweeter [account](https://www.mindstick.com/articles/33699/how-tech-is-disrupting-the-accounting-world) my App is not registered.

So I get an Unauthorized [Response](https://www.mindstick.com/forum/12719/how-to-make-response-write-display-special-character-like-lt-gt) and I call my [Authorize](https://www.mindstick.com/forum/326/integrating-authorize-dot-net-in-vb6-application) method.

TwitterService service = new TwitterService("ConsumerKey", "ConsumerSecret");

OAuthRequestToken requestToken = service.GetRequestToken("callbacklink");

Uri uri = service.GetAuthorizationUri(requestToken);

return new RedirectResult(uri.ToString(), false);

The problem is that when I'm redirected to the [Twitter](https://www.mindstick.com/articles/13027/8-lessons-you-can-learn-from-top-brands-twitter-marketing-strategies) [authorization](https://www.mindstick.com/blog/177/authentication-and-authorization-in-asp-dot-net) window the first time I have the good window but if i try again wihtout having [authorized](https://answers.mindstick.com/qa/51614/where-is-the-iphone-available-for-purchase-can-it-be-purchased-from-apple-authorized-resellers) my app, the url is like :

https://api.twitter.com/oauth/authorize?oauth_token=?

And I get an error.

If I continue I get the good url and after the empty one and so on...

Do you have any explaination ?

Thanks

## Replies

### Reply by Sumit Kesarwani

Hi Royce,\

You problably forget configure the "Callback URL" field on Setting tab of twitter app.


---

Original Source: https://www.mindstick.com/forum/1432/tweetsharp-getrequesttoken

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
