mifi / instauto

Instagram bot / automation library written in Javascript for Node.js
799 stars 145 forks source link

Add get all user ids that liked a post #75

Closed joelemanoel closed 2 years ago

joelemanoel commented 2 years ago

PR based on #39

joelemanoel commented 2 years ago

@mifi I used the "content" because it could be a Reels or IGTV, would you like me to use the term "Post"? If you feel necessary, you can change the code.

mifi commented 2 years ago

Thanks for your PR! Looks good, but I took the liberty of rewriting it to avoid code duplication, so I made a common GraphQL query function. Would you like to verify that it still works?

Do you have some example cod that you use to test it? Maybe you can share it as a comment in this PR

joelemanoel commented 2 years ago

Thanks for your PR! Looks good, but I took the liberty of rewriting it to avoid code duplication, so I made a common GraphQL query function. Would you like to verify that it still works?

Do you have some example cod that you use to test it? Maybe you can share it as a comment in this PR

Its work for me.

I use this: const getUsersWhoLikedContent= await instauto.getUsersWhoLikedContent({ contentId: 'CX9Oz0uLwEv', maxPages: 10 }); console.log(getUsersWhoLikedContent);

mifi commented 2 years ago

thanks