How To Unretweet A Tweet If You’re Blocked
Using Postman to Make Twitter API Requests
We’ve all been there. Some jerk off thinks they’re hot shit so they block you on Twitter. How rude! Oh well. Life moves on.
Unfortunately, even when they disappear off into the void, their old tweets on your timeline don’t (at least from the perspective of any of your followers who are not also blocked). Imagine the embarrassment of leaving an old tweet that belongs to your now new enemy on your profile for all to see.
So, say you wanted to remove these but can’t because you can’t even access them (except from another Twitter account that is not blocked, of course — but that’s no help!)
No fret. With my 3 Step Solution we can unretweet any pesky blocked tweet we wish. Follow along and I’ll teach you how.
Step 1 — Download Postman
The first thing we need to do is download Postman from the Google Chrome Store. If you are familiar with API testing tools, then you may use whichever one you are familiar with, but some of the settings are different depending on the tool you use. Here is a list of free open-source API testing tools if you prefer not to use Google Chrome.
Step 2 — Make a Twitter Application
The next step is to make a Twitter Application with the user account that you want to perform the API request with.
Click “Create New App” and fill in the fields. You can put whatever down you like. It really doesn’t matter.
Now that you have an “App”, go to the Keys and Access Tokens tab. Your App will have a Consumer Key and Consumer Secret. Take note of these.
Scroll down a bit and generate a new Access Token.
Take note of the Access Token and Access Token Secret.
Step 3 — Make your API Request in Postman
From the Twitter Docs, we can see that to unretweet a tweet we must use the following endpoint:
- POST statuses/unretweet/:id
In Postman set the Request Type to POST (top left corner of following screenshot).
Immediately to the right where it says “Enter request URL”, enter the full API endpoint:
The number in bold in this API request is just the ID of the tweet.
For example, if you had retweeted this tweet (https://twitter.com/anamnesis_xyz/status/953023024042860544) and were subsequently blocked by Morihei, then you would use the ID found in the tweet URL for your API request.
In order to find the blocked retweet, you’ll have to login into a new Twitter account that is not blocked.
The API request URL to unretweet the above tweet would be:
But before we’re ready to unretweet the blocked tweet, we must also include an Authorization header in the POST Request. Select OAuth 1.0 as the type:
Remember your authorization keys (Consumer Keys and Access Tokens) from the beginning of the tutorial? It’s time to use those. Fill in the following values:
Note: Don’t worry about the nonce or timestamp. These will be generated automatically if you left them blank.
Step 4 — Hit Send!
Hit the big blue Send button and the tweet you previously retweeted should no longer be retweeted! You should see a post response that looks something like this:
Well, did it work? Let me know either way :)