I don’t want to receives tweets from certain users. Twitter documentation mentions about “follow” param, but I need inversion of this option. Is there any other option than filtering it on the side of my app?
Question posted in Twitter API
The official Twitter API documentation can be found here.
The official Twitter API documentation can be found here.
2
Answers
If you don’t want to see
tweets
from specific users on yourtimeline
you can simplymute
those users. Muting just turn off their tweets from your timeline and the he/she will still remain in your following list.If you are looking to do this via
Twitter API
here is the reference linkhttps://dev.twitter.com/rest/reference/post/mutes/users/create
And if you want to mute users from Desktop or Mobile you can click on Down Arrow icon and select Mute @username.
The standard Twitter streaming API filter options do not allow you to exclude results from the filter pattern – it is inclusive. The enterprise PowerTrack API does have the ability to exclude terms and users as part of the filter pattern, but it is commercial.
You will have to filter the results in your own code. You could do this by looking for the presence of the user object belonging to the user you want to exclude, and ignoring those Tweets.