Hey everyone! Did you know that there's a way to read/write/send messages to other twitter accounts with your Twitter Developer Account? (All discu...
For further actions, you may consider blocking this person and/or reporting abuse
This is super useful, thanks for sharing!
Hello,
I got the access token by the way followed like above. But how can I create BOT's ? and whats the use of getting those access token.
Say for eg., I have a parent acct called "A" which i'm holding all the keys(API,Access) for A, now i jus enabling 3-legged Oauth for other account "B". Am I right?
Well..yes. Suppose u have ur own twitter handle and used it to apply for a Twitter Developer Account. You want ur Twitter bot to have it's own twitter handle(a different account). You have 2 options:
Thanks for your timely reply.
Still having a doubt, I have to use tweepy library.. for that it require
consumer_key
consumer_secret
access_token
access_token_secret
But in our case, by using above method i can get only access_token & access_token_secret... I require Consumer Key and secret also to generate.
Could you please look and share your thoughts. It will be useful for me. Actually I need around 50+ twitter account API key along with all 4 Consumer & access keys.
Thanks in advance
In developer portal -> Projects & Apps -> Standalone Apps -> {Your App name} -> keys & tokens -> Consumer keys(API Key & Secret)
If u head over there, u will get consumer_key and consumer_secret. Check the first diagram in this blog post for reference.
res.cloudinary.com/practicaldev/im...
Thanks again for your reply. But here I'm having an issue, let me explain.
I have an account called "A", which I got approved for Twitter API access keys(all 4). Above method is done(oAuth enabled,callback URL given all fine) for account "A".
Now as per your prev comment guidance, I went to dev portal -> creating std alone apps for my another account "B"(given same in Website URL in account A dev account). Hence I got consumer keys & bearer key & access keys were generated as per this forum. So finally i got all the 4 keys.
Now while I use it in program, it calls always account A only, not account B.
That's my prblem. Thanks again.
Hello, I received the Access Token and Secret Token of my bot account, but in order to link my bot with my dev account, I still can't figure out where should I put them in? I tried to edit the ones in my dev account, but it can only be generated automatically. Sorry I'm a total beginner.
To use the Twitter API, u will need to use 4 variables - consumer_key, consumer_secret, access_token, access_token_secret in your bot program(which could be in Python(tweepy library is pretty famous), JavaScript or any language of ur choice).
This blog only explains about how to get these 4 keys not about how to create a Twitter bot. (There are plenty of resources available online for creating a Twitter Bot)
Hope this helps!
On a side note, I made my first twitter bot with the help of this video.
youtube.com/watch?v=W0wWwglE1Vc
However, this will tweet directly into your Twitter handle which is a developer account. If u want another Bot account that is different from your Developer account, u have to obtain access_token and access_token_secret keys in the method mentioned in the blog post and change these 2 lines of code.