Simple JavaScript file to load Instagram pictures of a certain tag and infinite scroll through them.
To use, download into website directory. Link to instagram-scroll.js in webpage source. Make sure to link to jQuery too.
Edit the parameters at the top of the file:
tag_nameis the tag to loadclient_idis the client id given through the Instagram Developer APIdiv_to_add_picsis the div id to add pictures to
Optional parameters:
- Set
include_captiontotrueto add the caption in text after the picture - Set
include_usernametotrueto add the username in text after the picture
Add the following code to webpage:
<script>
$(function(){
return LoadResults();
})
</script>