ramtinak / InstagramApiSharp

A complete Private Instagram API for .NET (C#, VB.NET).
MIT License
792 stars 239 forks source link

Users missing and users repeated in followers list #516

Open emanuelebottinelli opened 2 years ago

emanuelebottinelli commented 2 years ago

### Important note

I've:

Issue category

Language

Usage

Operating System

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!

SwipeDVM commented 2 years ago

@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?

emanuelebottinelli commented 2 years ago

@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!

SwipeDVM commented 2 years ago

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.

emanuelebottinelli commented 2 years ago

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

SwipeDVM commented 2 years ago

Снимок экрана 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

emanuelebottinelli commented 2 years ago

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: @.***>

1fini commented 2 years ago

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

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

fmmagalhaes commented 1 year ago

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

SwipeDVM commented 1 year ago

@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

fmmagalhaes commented 1 year ago

@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?

viktorbaf commented 1 year ago

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