Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending extra parameters to twitter's oauth/authorize

Tags:

oauth

twitter

I want to send some extra parameters to twitter's oauth/authorize endpoint (along withoauth_token) and get them back as it is in the callback request (along with oauth_token and oauth_verifier). For example:

request(extra parameter - app_name):

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

callback request should be(extra parameter returned as it is - app_name):

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

Please let me know if this doable in twitter as it is in Google and Facebook.

like image 216
shailesh88 Avatar asked Dec 01 '25 02:12

shailesh88


1 Answers

Asked this question on twittercommunity and got the answer. The trick was to add the extra parameters in the callback url itself while obtaining the request token.

like image 166
shailesh88 Avatar answered Dec 02 '25 19:12

shailesh88