ryancw / instagram-scroll

Simple JavaScript file to load Instagram pictures of a certain tag and infinite scroll through them
14 stars 6 forks source link

instagram-scroll

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

Use

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

<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:

Optional parameters include:

Demo

A sample of the script in action can be seen here.