0

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"); // <--  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!

4

2 回答 2

0

在这里回答:远程服务器返回错误:(401)未经授权。Twitter oAuth

于 2011-06-29T11:29:33.547 回答
-1

很可能是因为从 Twitter 的角度来看,“localhost”没有指向您的网络服务器。

于 2011-06-04T23:50:32.083 回答