instafeed.js icon indicating copy to clipboard operation
instafeed.js copied to clipboard

Add a way to get carousel images

Open stevenschobert opened this issue 5 years ago • 9 comments
trafficstars

Feature request to add a way to get the images from a carousel album

stevenschobert avatar Apr 10 '20 16:04 stevenschobert

Thanks for raising this feature @stevenschobert. May I ask for an estimated ETD?

pfvqueiros avatar Apr 10 '20 16:04 pfvqueiros

Afraid I can't give one @pfvqueiros, sorry! I can only work on this project during my free time, which is limited and unpredictable. (For example, I was only able to rewrite the v2 of this project because I finished a previous project early, and sacrificed some sleep.)

If you're needing it urgently for a client project, you might have to implement it yourself using a callback options that are provided (like after).

stevenschobert avatar Apr 10 '20 16:04 stevenschobert

Afraid I can't give one @pfvqueiros, sorry! I can only work on this project during my free time, which is limited and unpredictable. (For example, I was only able to rewrite the v2 of this project because I finished a previous project early, and sacrificed some sleep.)

If you're needing it urgently for a client project, you might have to implement it yourself using a callback options that are provided (like after).

Totally understand. Thanks again for your great work :)

pfvqueiros avatar Apr 10 '20 16:04 pfvqueiros

Just a note on this after some initial investigation - the extra images in a carousel are available as an array of ID's - which means that they require 1 request per image. If you have a lot of carousels with a lot of images in them, this would eat up your API request allowance a lot faster (the default allowance is 200/hour, and normally instafeed.js uses 1 per user for the initial load).

We might need to look at a scheme where the extra images are loaded on demand (the user clicks 'next' to trigger the carousel to load), rather than everything automatically.

benjamin-hull avatar Apr 27 '20 16:04 benjamin-hull

I believe if you add "children{media_url,thumbnail_url}" to the call out to the graph api, that returns all children of carousel albums. At least it does in the (limited) tests that I've done.

  url = 'https://graph.instagram.com/me/media?fields=caption,id,media_type,media_url,permalink,thumbnail_url,timestamp,username,children{media_url,thumbnail_url}&access_token='+ token;

djqdos avatar Jul 15 '20 13:07 djqdos

Any luck on this? I am looking to display album images also on my website.

mylastore avatar Aug 30 '20 04:08 mylastore

This issue has been automatically marked as stale because it hasn't had new comments in the last 3 months. It will be closed if no further activity occurs. If you still need assistance with this issue, or believe it shouldn't be closed, please respond with a new comment to let us know. Thank you all for your contributions.

stale[bot] avatar Dec 12 '20 20:12 stale[bot]

I changed the url variable as @djqdos suggested. Then added lightSlider to my project.

Find my code in attachment ;-) instragram-fetch.txt

FreMun avatar Dec 24 '20 15:12 FreMun

This issue has been automatically marked as stale because it hasn't had new comments in the last 3 months. It will be closed if no further activity occurs. If you still need assistance with this issue, or believe it shouldn't be closed, please respond with a new comment to let us know. Thank you all for your contributions.

stale[bot] avatar Jul 08 '21 02:07 stale[bot]