Download
User Rating: 0/5 ( 0 votes)
Instagram Lite is a simple, lightweight jQuery plugin used to display a user's Instagram photos.
Source: github.com
1. INCLUDE JS FILES
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="/js/plugins/instagramLite.js"></script>
2. HTML
<ul class="instagram-lite"></ul>
3. JAVASCRIPT
$('.instagram-lite').instagramLite({
clientID: 'XXXXXXXXXXXXXXXXXXXXX',
username: 'yourusername'
});
-
clientID: string
A string that defines your client ID provided by Instagram.
-
username: string
A string that defines the username of the user you want to retrieve Instagram photos from.
4. OPTIONS
-
limit: integer
An integer that indicates the limit of photos to be returned (default: 10).
-
list: boolean
A boolean value that indicates whether or not to use list items (default: true).
-
urls: boolean
A boolean value that indicates whether or not the images should be linked to their page on Instagram (default: true).
-
error: function(errorCode, errorMessage)
A callback function that is triggered after the request if the request is not sucessful. If Instagram returns an error, the error code and error message will be passed to this callback function.
-
success: function()
A callback function that is triggered after the request if the request is sucessful.