forked from robedge/jquery.instagram.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
74 lines (50 loc) · 1.31 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
####
This is a basic jquery plugin that will allow you to pull in an instagram feed.
The user data for the uploader of the image is attached to the image in the jquery data.
You can access it by using $('#id').data('user')
Alternate image sizes are available as well as caption data. They are attached to the image element
that is created.
To get altImageSizes object use var altImages = $('#me_0').data('altImageSizes');
To get Caption object use var caption = $('#me_0').data('caption');
*** me_0 is the id of the element you wish to get data for, so this would change for each image.
####
####
USAGE
####
--- getMyStream ---
<div id="me" />
$(document).ready(function() {
$("#me").instagram('getMyStream', {
count: 5
});
});
--- getUserStream ---
<div id="user" />
$(document).ready(function() {
$("#user").instagram('getStream', {
count: 5,
user: 1574083
});
});
--- getMyLikes ---
<div id="myLikes" />
$(document).ready(function() {
$("#myLikes").instagram('getMyLikes', {
count: 5
});
});
--- getPopularStream ---
<div id="popular" />
$(document).ready(function() {
$("#popular").instagram('getPopularStream', {
count: 5
});
});
--- getStreamByTag ---
<div id="search" />
$(document).ready(function() {
$("#search").instagram('getStreamByTag', {
count: 5,
tag: 'transformers'
});
});