ifeed
v0.0.3
Published
Instagram feed on your browser. No jquery. Only 2kb gzipped!
Downloads
17
Maintainers
Readme
ifeed
Instagram feed on your website. No jquery. Only 2kb gzipped!
Usage
var opts = {
resolution: 'thumbnail',
get: 'user',
userId: YOUR_USER_ID,
accessToken: 'YOUR_ACCESS_TOKEN',
sortBy: 'least-liked'
};
document
.getElementById('ifeed')
.ifeed(opts);
Default options:
{
get: 'popular', // popular, tagged, location, user
tagName: null, // for get === tagged
locationId: null, // for get === location
userId: null, // for get === user
accessToken: null, // for get === user
resolution: 'thumbnail', // thumbnail - 150x150, low - 306x306, standard - 612x612
sortBy: 'recent', // random, recent, least-recent, most-liked, least-liked, most-commented, least-commented
limit: 9,
template: '<a target="_blank" href="{{link}}"><img src="{{image}}" />{{likes}}</a>',
before: null, // Callback
after: null // Callback
}