我在Google App Engine中使用Struts2。 在我的行动中:
public String execute(){
oauth_callback = REDIRECT_URI;
consumer_key = CONSUMER_KEY;
consumer_secret = CONSUMER_SECRET;
return SUCCESS;
}
在我的Struts.xml
中<result type="redirect">
<param name="location">https://api.twitter.com/oauth/request_token?oauth_callback=${oauth_callback}&consumer_key=${consumer_key}&consumer_secret=${consumer_secret}</param>
</result>
我得到错误:
Failed to validate oauth signature and token
我错过了传递给oath / request_token的参数吗?
感谢。