- Overview
- Documents
jQuery instagram is a simple jQuery plugin to show a list of Instagram photos.
-
sex shop
sex shop
sex shop
sex shop
sex shop
seks shop
spanish fly
psikolog
sohbet numara
sohbet hatti
Source: github.com
1. INCLUDE JS FILES
<script src="jquery.js"></script> <script src="dist/instagram.min.js"></script>
2. HTML
<div class="instagram"></div>
3. JAVASCRIPT
jQuery(function($) { $('.instagram').on('willLoadInstagram', function(event, options) { console.log(options); }); $('.instagram').on('didLoadInstagram', function(event, response) { console.log(response); }); $('.instagram').instagram({ hash: 'love', clientId: 'YOUR-CLIENT-ID-HERE' }); });
4. OPTIONS
hash: Get a list of recently tagged media.
Authentication: clientId required
Type: String
Default: null
userId: Get the most recent media published by a user.
Authentication: accessToken required.
Type: Number
Default: null
location: Get a list of recent media objects from a given location.
Authentication: clientId required.
Type: Object
Default: null
Parameters:
-
id Location id (required).
-
min_timestamp Return media after this UNIX timestamp.
-
max_timestamp Return media before this UNIX timestamp.
-
min_id Return media before this min_id.
-
max_id Return media after this max_id.
search: Search for media in a given area.
Authentication: clientId required.
Type: Object
Default: null
Parameters:
-
lat Latitude of the center search coordinate. If used, lng is required.
-
lng Longitude of the center search coordinate. If used, lat is required.
-
min_timestamp A unix timestamp. All media returned will be taken later than this timestamp.
-
max_timestamp A unix timestamp. All media returned will be taken earlier than this timestamp.
-
distance Default is 1km (distance = 1000), max distance is 5km.
accessToken: OAuth 2 access token.
Type: String
Default: null
clientId: OAuth 2 client application id.
Type: String
Default: null
count: Number of photos.
Type: Number
Default: null
Note: Instagram is filtering out private users' photos at read-time, so you won't always get the full number of photos in the count
url: You can populate this with the next URL object (pagination.next_url) returned by the Instagram API.
Type: String
Default: null
5. EVENTS
willLoadInstagram
Triggered just before making the request to instagram API.
Params:
- event
- options
didLoadInstagram
Called after the response from instagram API.
Params:
- event
- response