Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twitter oauth2 #49

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

beesaferoot
Copy link
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
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
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.

None yet

2 participants