I download tweetsharp and twitterizer and I can not make it work. I try tweetsharp with the basic following sample
TwitterService Service = new TwitterService(consumerKeyTw, consumerSecretTW);
OAuthRequestToken requestToken = Service.GetRequestToken("http://localhost:1470/Twitterr/OAuth"); 开发者_如何学C// <-- callback URL
I always get a false Token. I also try twitterizer, which came with a simple example. I copy and paste the keys. But I also never get back the token.
I try with tweetsharp deleting the url callback and it worked! But off course twitter didn't go to my callback url. On dev.twitter I setup for Registered Callback URL the above url. But I still don't get the token.
Any Idea? What I'am missing? Do you know any way to debug and test my code with a localhost? Thanks!
Answered here: The remote server returned an error: (401) Unauthorized. Twitter oAuth
Most probably it's because of "localhost" not pointing to your webserver from twitters point of view.
精彩评论