我使用instafeed.js
伟大的工具与instagram的api交互。我目前正在尝试过滤结果仅为image.type === 'video'
。我已经能够得到这个工作。唯一的问题是,它永远不会满足limit:10
集。不知何故,它可能会拉动所有类型(image
和video
),然后应用过滤器。仅在视频中应用过滤器时,是否可以满足限制10
?限制与过滤器 - instafeed.js
var feed = new Instafeed({
limit: '10',
sortBy: 'most-liked',
resolution: 'standard_resolution',
clientId: 'xxxxx',
template:'<div class="tile"><div class="text"><b>{{likes}} ♥ </b>{{model.user.full_name}}</div><img class="item" src="{{image}}"></div>',
filter: function(image) {
return image.type === 'video';
}
});
@StevenSchobert请在这里提供另一个帮助。 – 2014-11-02 15:52:46