Home > DeveloperSection > Forums > How to get all followers from ListFollowers() method of TweetSharp Library ?
Chintoo Semi

Total Post:135

Points:947
Posted on    September-03-2013 4:29 AM

 Twitter API Twitter API 
Ratings:


 1 Reply(s)
 2227  View(s)
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.



Sumit Kesarwani

Total Post:378

Points:2694
Posted on    September-03-2013 7:40 AM

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.


Don't want to miss updates? Please click the below button!

Follow MindStick