I need to retrieve all deleted tweets from a specific user.
I'm working on java by using Twitter4j
Is there any solution?
You can't get deleted tweets. The best approach could be use the streaming API and get the tweets from an user, and if the user doesn't delete the tweet immediately you will get it and you can do whatever you want. If you try to retrieve a tweet that was eliminated with their ID you will get an error.
Related
I am using the Twitter API in a Swift application, I want to show a particular tweet along with all of its replies, How can I do it?
I saw many old posts that say "there is no way to retrieve the replies of a tweet", Has it changed? is there a way to do that now?
example of post
Is there a way in the Twitter API v1.1 to get the id's of all the users that replied, favorited and retweeted to a particular tweet using its id?
I've searched in older posts but I didn't find an simple way to do it.
Thanks
According to Twitter Staff Episod,
It's not possible with the API after the fact for a tweet that has more than 100 retweets. You would need to collect them in real time as they happen to collect them all. The Streaming API is the best bet for tracking such things.
So, you can only get 100 Retweets ID of a tweet through REST API. Move to Streaming API to get all the Retweets ID but you can't get the past data. You can only get data in Streaming API from present - to - future.
The Twitter REST API 1.1 documentation for the GET statuses/user_timeline method states:
This method can only return up to 3,200 of a user's most recent Tweets. Native retweets of other statuses by the user is included in this total, regardless of whether include_rts is set to false when requesting this resource.
Does this mean one can only traverse the 3,200 newest tweets form a user's timeline?
Does this mean one can only traverse the 3,200 newest tweets form a user's timeline?
Yes, though nothing is stopping you from caching tweets yourself.
I am building a demo Twitter app. I have fetched the search results and timeline tweets. Is there any way to get the list of people I am following and my followers? And, can my messages be fetched too?
https://dev.twitter.com/docs/api/1/get/users/lookup
https://dev.twitter.com/docs/api/1/get/users/show
https://dev.twitter.com/docs/api/1/get/friends/ids
https://dev.twitter.com/docs/api/1/get/followers/ids
Check this links to know the parameters to get the list of followers and know the REST API link for retrieve the friends and followers.
What's the REST API call required to undo/remove/destroy/delete a retweet (of another user) from the authenticated user's timeline? There's simply no mention of this in the API documentation on the Twitter website.
Native retweet has all attributes of a simple tweet including a unique ID. So, you can use statuses/destroy method to remove it.
How to get that ID depends on your application. First, it's returned by statuses/retweet method. Second, you can get user's timeline and parse out ID of this tweet.