Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How get my post list? #245

Open
daraboon opened this issue Apr 13, 2021 · 3 comments
Open

How get my post list? #245

daraboon opened this issue Apr 13, 2021 · 3 comments

Comments

@daraboon
Copy link

There is not function to get all my posts
I will make an app like Instagram that is necessary to can get all post
Thanks

@MonsieurBibo
Copy link

I wouldn't recommend you to use this library since it's poorly maintained & rarely updated. However, you can achieve this by fetching in the user properties. This code should do the job:

await client.getUserByUsername({ username: "your account" })
  .then(res => console.log(res.edge_owner_to_timeline_media.edges)) // it returns an array of your user's medias.

@bootisverycool
Copy link

I wouldn't recommend you to use this library since it's poorly maintained & rarely updated. However, you can achieve this by fetching in the user properties. This code should do the job:

await client.getUserByUsername({ username: "your account" })
  .then(res => console.log(res.edge_owner_to_timeline_media.edges)) // it returns an array of your user's medias.

What library would you recommend then?

@MonsieurBibo
Copy link

@bootisverycool I would more recommend this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants