question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trying to get all of my following(7500) but gets 7395 instead

See original GitHub issue

General Question

Form

Put an [x] if you meet the condition, else leave [ ].

  • [ x] I’ve searched the Issues
  • [ x] I’ve read the basic concepts
  • [ x] I’m using the latest version

Question

Hi

I am trying to get all of my following

I follow 7500 people(the maximum allowed)

but when i tried to get them all i get only 7395

The 105 missing is the 105 users whom i followed first (5 years ago)

This is the code

friendshipsRouter.get('/getAllUserFollowingFast/:username', (req,res ,next) => {
    (async() => {
        const targetUser = await ig.user.searchExact(req.params.username);
        let feed = ig.feed.accountFollowing(targetUser.pk);
        let allResults = [];
        let currentPage;
        do {
            currentPage = await feed.items(); //
            currentPage.users.forEach(user => {
                allResults.push(user.username);
            });
        }
        while(feed.isMoreAvailable());

        res.send({allFollowing:allResults, number : allResults.length});
    })()
});

Does anyone have an idea how to solve this?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

2reactions
aliozcancommented, Sep 20, 2020

Same issue. The followers count is not accurate. Any ideas??

Does it happen in the app?

I tried to get all followers from the Instagram web UI by scrolling down to the end in the followers link but there are no duplicates there and the number of followers and the list of users match.

The error occurs when the number of followers is over 2k. Some followers are duplicated.

This is wrong. I also get duplicate followers when the number of followers is around 300.

1reaction
tinmarincommented, Jul 29, 2020

Same issue. The followers count is not accurate. Any ideas??

Read more comments on GitHub >

github_iconTop Results From Across the Web

Following more than 7500 users on Instagram - Ampfluence
Your Instagram account isn't as fun once you've hit the 7,500 following limit, but try to make the most of it and focus...
Read more >
How many accounts can I follow on Instagram?
Anyone who tries to follow more than 7,500 people will see an error message, regardless of how many followers they have. Anyone who's...
Read more >
Why is my Instagram not adding up my new followers? - Quora
This means they're not getting any new followers, they're just catching up on who they actually followed in the past. It's possible that...
Read more >
lowes home improvement hours
Get reviews, hours, directions, coupons and more for Lowe's Home ... Shop online at The Home Depot Canada for all of your home...
Read more >
How To Get More Followers On Instagram: 22 Tips To Try
Learn how to get more Instagram followers without having to pay by following our 22 tried and tested tips that work.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found