How to get all followers from ListFollowers() method of TweetSharp Library ?

Total Post:135

Points:947
 3547  View(s)
Ratings:
Rate this:

I am developing a demo application using TweetSharp Library  and i want all followers of my users.

I'm using ListFollowers() method of TweetSharp library but it gives only 20 followers.

Help please.

Thanks in advance.

  1. Post:378

    Points:2694
    Re: How to get all followers from ListFollowers() method of TweetSharp Library ?

    Hi Chintoo,


    You have to use NextCursor parameter in ListFollowers() method like this:

    var followers = service.ListFollowers(new ListFollowersOptions { Cursor = -1});

    while
    (followers.NextCursor != null)
    {
    followers= service.ListFollowers(new ListFollowersOptions { followers.NextCursor });
    //yourcode here.
    }

    Hope this will solve your problem.

      Modified On Mar-31-2018 12:10:46 AM

Answer