InstagramApiSharp icon indicating copy to clipboard operation
InstagramApiSharp copied to clipboard

Users missing and users repeated in followers list

Open emanuelebottinelli opened this issue 3 years ago • 11 comments

Important note

  • You must fill this form! If you don't fill it, your issue will be close immediately.
  • Put an X character between [ ] that is related to your issue, like [x]
  • Please remove Important note from this form!
  • Don't remove other sections (unless it's unnecessarily, like Debug logs and Screenshots sections)!

I've:

Issue category

  • [x] Bug
  • [ ] Feature Request
  • [ ] Missing Feature
  • [x] Question
  • [ ] Not sure

Language

  • [x] C#
  • [ ] VB.NET

Usage

  • [ ] Windows Form/Console app
  • [ ] WPF app
  • [ ] Asp .NET MVC
  • [ ] Asp .NET Core
  • [ ] Universal Windows Platform [UWP]
  • [ ] Xamarin or Xamarin Forms
  • [ ] Mono
  • [x] Other

Operating System

  • [x] Windows
  • [ ] Windows Server
  • [ ] Linux
  • [ ] Mac OS
  • [ ] Other

Describe your issue

Hi, I noticed that when I get the followers list of an user using:

var userFollowers = await _instaApi.UserProcessor.GetUserFollowersByIdAsync(userId, PaginationParameters.Empty);

the list changes everytime I call the function. The number of users in the list is always the same, but there are always users repeated inside it, and some users are missing, while when I search the missing users inside the followers list in instagram app they're actually there. I'm using this lib in a .Net MAUI project. I don't know if it's an instagram api problem or just an error of mine, can you please help me? Thanks!

emanuelebottinelli avatar Jan 19 '22 17:01 emanuelebottinelli

@emanuelebottinelli Hi, I faced exactly the same problem a couple of days ago and I've tried everything I could, but I can't get correct list of followers (( Do you have a solution or workaround for it?

SwipeDVM avatar Feb 02 '22 10:02 SwipeDVM

@emanuelebottinelli Hi, I faced exactly the same problem a couple of days ago and I've tried everything I could, but I can't get correct list of followers (( Do you have a solution or workaround for it?

I'm sorry, I haven't found a solution for this problem yet. If you solve it in some ways tell me, thanks!

emanuelebottinelli avatar Feb 02 '22 10:02 emanuelebottinelli

Contact me if you need a solution for it. I've found a workaround, but I had to fix a source code of the library for it.

SwipeDVM avatar Feb 11 '22 08:02 SwipeDVM

Contact me if you need a solution for it. I've found a workaround, but I had to fix a source code of the library for it.

Hi, can you tell me which is the workaround you've found? I haven't worked on my project for a while but it would be awesome to solve the problem

emanuelebottinelli avatar Mar 01 '22 10:03 emanuelebottinelli

Снимок экрана 2022-03-03 093237 Снимок экрана 2022-03-03 093326 Снимок экрана 2022-03-03 093334 Снимок экрана 2022-03-03 093427

I changed these files in the source code of the lib. You can ask me if something is not clear. Good luck! @emanuelebottinelli

SwipeDVM avatar Mar 03 '22 06:03 SwipeDVM

Thank u 😀


From: SwipeDVM @.> Sent: Thursday, March 3, 2022 7:36:36 AM To: ramtinak/InstagramApiSharp @.> Cc: emanuelebottinelli @.>; Mention @.> Subject: Re: [ramtinak/InstagramApiSharp] Users missing and users repeated in followers list (Issue #516)

[Снимок экрана 2022-03-03 093237]https://user-images.githubusercontent.com/98598023/156509808-69f97f72-5cbd-4c7a-b05b-56d6d2898224.png [Снимок экрана 2022-03-03 093326]https://user-images.githubusercontent.com/98598023/156509811-4a289e9d-c609-41af-a12e-ea694d771031.png [Снимок экрана 2022-03-03 093334]https://user-images.githubusercontent.com/98598023/156509813-7e0d079d-f3ac-4d7e-ba44-c0ff41d1c292.png [Снимок экрана 2022-03-03 093427]https://user-images.githubusercontent.com/98598023/156509814-b2601a38-63d9-48b8-855c-e1b9abf97a8d.png

I changed these files in the source code of the lib. You can ask me if something is not clear. Good luck! @emanuelebottinellihttps://github.com/emanuelebottinelli

— Reply to this email directly, view it on GitHubhttps://github.com/ramtinak/InstagramApiSharp/issues/516#issuecomment-1057724040, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANI327FN7HNWMLQGPUWV45TU6BMXJANCNFSM5MKRSHEQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>

emanuelebottinelli avatar Mar 04 '22 00:03 emanuelebottinelli

I didn't get the point with thoses modifications. You changed to request ?

And by the way, would you know how the pagination works?

1fini avatar Jun 02 '22 15:06 1fini

@SwipeDVM can you be a bit more clear on the notifications you did? It's hard to look at screenshots and see the difference.

fmmagalhaes avatar Dec 26 '22 01:12 fmmagalhaes

@fmmagalhaes @1fini You can see on the first screenshot that I added COUNT query parameter to the FIRENDSHIPS_USER_FOLLOWERS and FIRENDSHIPS_USER_FOLLOWERS_MUTUALFIRST. Then I updated GetUserFollowersUri method in UriCreator.cs (added countParamValue there, depends on the user total followers count). Then I added totalFollowers parameter into the GetUserFollowersUri method calls in UserProcessor.cs

SwipeDVM avatar Dec 26 '22 11:12 SwipeDVM

@SwipeDVM thanks for that! It's still unclear to me why this fixes the issue. Can you clarify?

Would you also be willing to open a pull request to contribute to the project?

fmmagalhaes avatar Dec 26 '22 16:12 fmmagalhaes

Hi guys,

Have you been able to call the function below successfully? I'm trying to get my follower's list (11K) and sometimes I get a limit reached error and most of the time challenge_required error. I think this issue started about a month or 2 months ago. Is there a workaround for this? other than adding a delay between requests

var userFollowers = await _instaApi.UserProcessor.GetUserFollowersByIdAsync(userId, PaginationParameters.Empty);

Please let me know! Thanks

viktorbaf avatar Jan 27 '23 02:01 viktorbaf