Oauth 2.0 oAuth2-此页面错误没有请求令牌

Oauth 2.0 oAuth2-此页面错误没有请求令牌,oauth-2.0,token,twitter-oauth,Oauth 2.0,Token,Twitter Oauth,我是oAuth2的新手,正在尝试修改这个示例以授权Twitter应用程序而不是Google // From the example: var oauth2:OAuth2 = new OAuth2("https://accounts.google.com/o/oauth2/auth", "https://accounts.google.com/o/oauth2/token", LogSetupLevel.ALL); var grant:IGrantType = new Authorization

我是oAuth2的新手,正在尝试修改这个示例以授权Twitter应用程序而不是Google

// From the example:
var oauth2:OAuth2 = new OAuth2("https://accounts.google.com/o/oauth2/auth", "https://accounts.google.com/o/oauth2/token", LogSetupLevel.ALL);

var grant:IGrantType = new AuthorizationCodeGrant(stageWebView, "INSERT_CLIENT_ID_HERE", "INSERT_CLIENT_SECRET_HERE", "http://www.example.com", "https://www.googleapis.com/auth/userinfo.profile");
我的尝试:

var oauth2:OAuth2 = new OAuth2("https://api.twitter.com/oauth/authorize", "https://api.twitter.com/oauth/request_token", LogSetupLevel.ALL);

var grant:IGrantType = new ImplicitGrant(stageWebView, "Consumer-Key", "Consumer-Secret", "http://www.example.com", "https://api.twitter.com/oauth/access_token");
我遇到了以下错误:

“此页面没有请求令牌。这是我们使用的特殊密钥 要求使用您的Twitter帐户的应用程序的需要“


为什么找不到请求令牌?

据我所知,twitter使用的是OAuth1.0A而不是OAuth2.0