Skip to content

elizaway/instagram-scroll

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

instagram-scroll

Simple JavaScript file to load Instagram pictures of a certain tag and infinite scroll through them.

Use

Link to the instagram-scroll.js source file in your webpage.

Add the following code to webpage:

<script>
InstagramScroll({tag: "cats", clientID: "token", imageContainer: "#pics"});
</script>

This will add a ul to any object on the page with an ID of 'pics' filled with 20 of the most recent Instagram images tagged with 'cats'.

Parameters

The three necessary parameters for using the function are:

  • tag - search term for the images loaded
  • clientID - given through the Instagram Developer API
  • imageContainer - the DOM element where the ul containing the images will be inserted

Optional parameters include:

  • includeCaption - add the caption in text after the picture
  • includeUsername - add the username in text after the picture

About

Simple JavaScript file to load Instagram pictures of a certain tag and infinite scroll through them

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%