且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用Twitter登录时出错

更新时间:2022-03-05 17:37:00

您的前两个错误是因为您向GetRequestTokenGetAccessToken传递了过多或不足的参数-看看它们要花多少! (如果您无法弄清这些错误的含义,那么您以前编程过吗?如果您被卡在这样的事情上,建议您尝试更简单的方法.)

这是您的代码-类型问题的错误.替换
OAuthTokenResponse RequestToken = OAuthUtility.GetRequestToken(consumerKey, consumerSecret);



Twitterizer.OAuthTokenResponse RequestToken = OAuthUtility.GetRequestToken(consumerKey, consumerSecret);

希望这会有所帮助,

埃德:)
Your first two errors are because you have passed too much or not enough arguments to GetRequestToken or GetAccessToken - look at how many they take! (If you can''t work out what those errors mean, have you ever programmed before? I suggest you try something more simple if you''re stuck on things like this.)

This is a bug with your code - types issue. Replace
OAuthTokenResponse RequestToken = OAuthUtility.GetRequestToken(consumerKey, consumerSecret);

with

Twitterizer.OAuthTokenResponse RequestToken = OAuthUtility.GetRequestToken(consumerKey, consumerSecret);

Hope this helps,

Ed :)