Home > DeveloperSection > Forums > TweetSharp GetRequestToken
Royce Roy
Royce Roy

Total Post:134

Points:938
Posted on    September-03-2013 8:58 AM

 Twitter API Twitter API 
Ratings:


 1 Reply(s)
 1013  View(s)
Rate this:

Hi Guys


I am using TweetSharp Api and I have some problems concerning the service.GetRequestToken().

For example in my Asp.net C# function I do a simple sendTweet().

On my Tweeter account my App is not registered.

So I get an Unauthorized Response and I call my Authorize 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 authorization window the first time I have the good window but if i try again wihtout having authorized 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 



Sumit Kesarwani

Total Post:378

Points:2694
Posted on    September-03-2013 9:09 AM

Hi Royce,

You problably forget configure the "Callback URL" field on Setting tab of twitter app.


Don't want to miss updates? Please click the below button!

Follow MindStick