0

我在 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}&amp;consumer_key=${consumer_key}&amp;consumer_secret=${consumer_secret}</param>
</result>

我收到错误:

Failed to validate oauth signature and token

我是否缺少传递给 oath/request_token 的参数?

谢谢。

4

0 回答 0