Twitter-API-v2-sample-code icon indicating copy to clipboard operation
Twitter-API-v2-sample-code copied to clipboard

delete_tweet.py provides an authorization link that doesn't return the authorization PIN

Open numbworks opened this issue 3 years ago • 5 comments

Problem: "delete_tweet.py" provides an authorization link that doesn't return the authorization PIN.

I do refer to the following block in the log after running the script:

...
Please go here and authorize: https://api.twitter.com/oauth/authorize?oauth_token=<token>
Paste the PIN here: <pin>
...

Solution: As for "create_tweet.py", replacing the following line:

request_token_url = "https://api.twitter.com/oauth/request_token"

with the following:

request_token_url = "https://api.twitter.com/oauth/request_token?oauth_callback=oob&x_auth_access_type=write"

to fix the issue.

Please update the file in the repository accordingly.

numbworks avatar Aug 14 '22 15:08 numbworks

Oh man, this literally just saved my life. Issue still persists. I thought oath_callback=oob was supposed to be the default?

mowsie2k avatar Jan 11 '23 00:01 mowsie2k

Oh man, this literally just saved my life. Issue still persists. I thought oath_callback=oob was supposed to be the default?

mowsie2k avatar Jan 11 '23 00:01 mowsie2k

Oh man, this literally just saved my life. Issue still persists. I thought oath_callback=oob was supposed to be the default?

mowsie2k avatar Jan 11 '23 00:01 mowsie2k

Oh man, this literally just saved my life. Issue still persists. I thought oath_callback=oob was supposed to be the default?

mowsie2k avatar Jan 11 '23 00:01 mowsie2k

@mowsie2k You are welcome! ☺️

numbworks avatar Jan 11 '23 11:01 numbworks