向 Twitter 发送额外参数 oauth/authorize

Sending extra parameters to twitter's oauth/authorize

我想将一些额外的参数发送到 Twitter 的 oauth/authorize 端点(连同 oauth_token)并在回调请求中将它们取回(连同 oauth_tokenoauth_verifier). 例如:

请求(额外参数 - app_name):

https://api.twitter.com/oauth/authorize?oauth_token=FxHxpekZK8VVfNRr38i2WKJskIZY3Hj7&app_name=myTwitterApp

回调请求应该是(额外的参数按原样返回 - app_name):

http://www.example.com?oauth_token=FxHxpekZK8VVfNRr38i2WKJskIZY3Hj7&oauth_verifier=Vq0yq2LRUBybevnjGvXyUOBPWH9Ew9DY&app_name=myTwitterApp

请告诉我这在推特上是否可行,就像在 Google 和 Facebook 上一样。

在 twittercommunity 上问了这个问题并得到了答案。诀窍是在获取请求令牌时在回调 url 本身中添加额外参数。