Search code examples
twittertwitter-oauth

Any way to send a Tweet as someone else without applying to Twitter Dev again?


So I applied as a Twitter Dev to make a bot that tweets stuff. About two days later, I got access. When I ran the code with the tokens it gave me, it posts from my account.

My question: Is there a way for me to make it send as another account (a bot account) without me having to apply again?


Solution

  • Yes, you can use the Sign-in with Twitter flow to authenticate a different user to your app, and then use the Access Token and Access Token Secret for that user to post to that account. This is the correct way to implement things - you should not be applying for multiple developer accounts.

    You can also use tools like twurl or another CLI tool to