Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Filtered Stream if he/she follow and i follow him/her

$
0
0
hi linvi, i've figure out how to solve my problem:

public void bgw_DoWork(object sender, DoWorkEventArgs e)
    {
        var currentUser = User.GetLoggedUser();
        var followerIds = currentUser.GetFollowerIds();
        var stream = Stream.CreateFilteredStream();

        foreach (long id in followerIds)
        {
            stream.AddFollow(id);
        }
        stream.AddTrack(hastagx);
        stream.MatchingTweetReceived += stream_MatchingTweetReceived;
        stream.StartStreamMatchingAllConditions();
    }
but i get problem, not a problem in code. the problem is, only follower that follow me before i start stream will be included. :D. any new follower after i start stream will not included. :D

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>