发送额外的参数到Twitter的oauth / authorize

sha*_*h88 2 twitter oauth

我想向Twitter的oauth / authorize端点(以及oauth_token)发送一些额外的参数,并像在回调请求中一样(与oauth_tokenoauth_verifier)一起将它们取回。例如:

请求(附加参数- app_name):

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

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

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

请让我知道这是否适用于Twitter,就像它在Google和Facebook中一样。

sha*_*h88 5

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

  • 你能用你是如何做到的例子来更新你的答案吗? (3认同)