HOW TO GET ALL FOLLOWERS FROM LISTFOLLOWERS() METHOD OF TWEETSHARP LIBRARY ?

Chintoo Semi

Total Post:135

Points:947
Posted by  Chintoo Semi
 3046  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. Sumit Kesarwani

    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 });

    //your code here.

    }

    Hope this will solve your problem.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!