Skip to content

Twitter oauth2#49

Open
beesaferoot wants to merge 2 commits into
ezeoleaf:mainfrom
beesaferoot:twitter-oauth2
Open

Twitter oauth2#49
beesaferoot wants to merge 2 commits into
ezeoleaf:mainfrom
beesaferoot:twitter-oauth2

Conversation

@beesaferoot
Copy link
Copy Markdown
Contributor

@beesaferoot beesaferoot commented Feb 11, 2022

Tried creating a tweet while testing but I kept running into permission error (error status 220). I think it could be related to how my Twitter app is set up, not sure why Twitter isn't letting the bot tweet using my API credentials.

Although I was able to perform read-only actions like search and lookup.

@ezeoleaf
Copy link
Copy Markdown
Owner

@beesaferoot Sorry for the late response. You may need to regenerate the token after you change the permissions from read-only to read-write.
At least that's how it works with OAuth1 and the Twitter API

@beesaferoot
Copy link
Copy Markdown
Contributor Author

Hi @ezeoleaf, Looks like the issue is from the OAuth2 method, I used the 2-step auth which is used as app-only access(read). To include read+write access, the flow (https://developer.twitter.com/en/docs/authentication/oauth-2-0/user-access-token) would be required.

The process looks quite complex, could use some pointers. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants