Giter Site home page Giter Site logo

Comments (8)

AnderGoig avatar AnderGoig commented on May 19, 2024

Hi @onurgenes, you can get more media by specifying how much you want with the count parameter, something like this:

api.recentMedia(fromUser: <YOUR USER>,
                count: <HOW MUCH MEDIA YOU WANT>,
                success: ...,
                failure: ...)

Even so, I think the maximum media returned per request is 33, if you specify more than that the Instagram API replies with pagination results, which is something I'm still working on to support.

from swiftinstagram.

onurgenes avatar onurgenes commented on May 19, 2024

Hello there @AnderGoig,

I think I need pagination support. I need to take all photos and choose the photos which is shared in 2017. So I am eagerly waiting you to support that feature!

Thanks!

from swiftinstagram.

AnderGoig avatar AnderGoig commented on May 19, 2024

I've been working on this and I have created a new branch called pagination to test this feature.

The problem is that this feature is limited to non-sandbox Instagram clients, so I can't test it with mine 😕

Is your Instagram client out of sandbox mode? Because that will be perfect to test it.

from swiftinstagram.

onurgenes avatar onurgenes commented on May 19, 2024

I will send my Client for a submission. Let's if it's going to work.

from swiftinstagram.

AnderGoig avatar AnderGoig commented on May 19, 2024

Thanks @onurgenes, I hope they accept it!

from swiftinstagram.

onurgenes avatar onurgenes commented on May 19, 2024

But first, I need to finish the app. If they accepts, I can share the client info with you. Thanks for hard work!

from swiftinstagram.

alexandre-g avatar alexandre-g commented on May 19, 2024

Seems like a great library, but you call looping through all the images pagination? :)
You realize many people have 2000+ photos on their accounts?
Perhaps can expose the Pagination object for clients to handle pagination themselves? Since requests accept maxId parameter already, and requirements for preloading can differ quite a bit from user to user.

from swiftinstagram.

AnderGoig avatar AnderGoig commented on May 19, 2024

You're right. I'm removing this branch for now.

from swiftinstagram.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.