2013-05-25 1 views
0

oAuth2를 처음 사용하고이 ActionScript3 oAuth2 library 예제를 적용하여 Google 대신 Twitter 응용 프로그램을 인증하려고합니다.oAuth2 -이 페이지에 대한 요청 토큰이 없습니다.

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

나는이 오류로 실행 해요 :

"There is no request token for this page. That's the special key we need from applications asking to use your Twitter account"

왜 요청 토큰이 발견입니까?

답변

1

트위터가 OAuth2.0이 아닌 OAuth1.0A를 사용 중입니다.

관련 문제