What is a valid callback url when client send request_token API?

oauth

#1


#2

@xni

Did you check this documentation?
https://developer.twitter.com/en/docs/basics/apps/guides/callback-urls

Do not add query strings to your callback URLs in your Twitter app’s configuration
Twitter will allow you to pass any standard query strings along with your callback URL in your oauth/request_token request. Therefore, we do not allow you to add query strings to the end of the callback URL that you list in the Twitter apps dashboard.

Also, please make sure that the same URL has been whitelisted in your Twitter app settings.

Best,
Shohei


#3

Thank you, @jrsyo
I have two questions:

  1. I can set http://127.0.0.1 in my app callback configuration, but I failed to request token by using this callback as I did in my step 1. Is http://127.0.0.1 a valid callback?

  2. Why I failed request token in my step 2, it is a valid callback but without query parameter?

Thanks.


#4

@xni

Please provide us the full response data you got. We now have only status code and it doesn’t help us a lot. What was the response body?


closed #5

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.