InstaSharper icon indicating copy to clipboard operation
InstaSharper copied to clipboard

InstaMedia.Likers doesn't work

Open ben18mk opened this issue 4 years ago • 0 comments

So I tried playing around with the API abilities and while trying to get the list of users that liked a post of mine, the function doesn't seam to work, it returns a null list.

Here is the code: IResult<InstaMediaList> posts = await api.GetUserMediaAsync("myusername",PaginationParameters.MaxPagesToLoad(Int32.MaxValue)); var post = posts.Value.FirstOrDefault(); foreach (var item in post.Likers) { Console.WriteLine(item.UserName); }

while debugging it, I saw that when trying to enter the foreach, it jumps out, and the reason for that is because the post.Likers has no content in it.

Any help?

ben18mk avatar May 30 '20 19:05 ben18mk