Statuses/filter return unexpected user id's tweets

filter
streaming

#1

I use statuses/filter to follow selected user id’s tweets.

It make me confused, the streaming api return some tweets that is not tweeted by the selected user.

Below is the code, do you have any idea?

https://github.com/hellojinjie/twitter_streaming/blob/master/src/main/java/com/hellojinjie/App.java


#2

Hi - you may want to regenerate those tokens, don’t show those anywhere public. Good thing to do is to keep them in a config or properties file that’s not tracked by git.

You’d expect to see other users in the follow stream: https://dev.twitter.com/streaming/overview/request-parameters#follow :

For each user specified, the stream will contain:

Tweets created by the user.
Tweets which are retweeted by the user.
Replies to any Tweet created by the user.
Retweets of any Tweet created by the user.
Manual replies, created without pressing a reply button (e.g. “@twitterapi I agree”).

If you don’t want those extra tweets you can just filter them out by checking the tweet user