Skip to content
This repository has been archived by the owner on May 3, 2021. It is now read-only.

How to limit items when using get_data #30

Closed
nugrahaindie opened this issue Sep 20, 2019 · 3 comments
Closed

How to limit items when using get_data #30

nugrahaindie opened this issue Sep 20, 2019 · 3 comments

Comments

@nugrahaindie
Copy link

$.instagramFeed({ 'tag': 'tag', 'get_data': true, 'items': 20, //it's won't work 'callback': function (data) { console.log(data); } });

@csanahuja
Copy link
Collaborator

With get_data parameter the data its returned unprocessed to the callback function, limit does not apply.

Once there is up to you how to process it. Iterate over the array of images and get the number you desire.

See example 7: https://www.sowecms.com/demos/jquery.instagramFeed/index.html#tabExamples

@mangcoding
Copy link

Ok Thanks, So i should limit by myself then.
Here is I implemented your script on my case

https://mangcoding.github.io/instagram-feeder/

Thanks for your awesome script

@jsanahuja
Copy link
Owner

Looks great!

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

No branches or pull requests

4 participants