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

New Post: How to get all the followers

$
0
0
Hi,

Using the below code i am able to get 250 followers, and if i try to run the below code in loop to get all the followers then the same followers are coming again, is there any way to get all the followers with entities (idstr, screenname & username) in a single hit or using paging logic i need to get more than 1lac followers, please advice on this. Thanks in advance.

var user = User.GetUserFromScreenName(userName);
var followers = user.GetFollowers();

Updated:
Will the below code will return all the followers (more than 1 lac) if i pass the token of the particular account
    public static void GetFollowers(IToken token)
    {
        ITokenUser u = new TokenUser(token);

        foreach (var follower in u.Followers)
        {
            Console.WriteLine(follower.Name);
        }
    }

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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