Image Instagram API包含20多幅图像
我想问你,是否有可能使用API从Instagram获得20多张全分辨率图像Image Instagram API包含20多幅图像,image,api,web,instagram,instagram-api,Image,Api,Web,Instagram,Instagram Api,我想问你,是否有可能使用API从Instagram获得20多张全分辨率图像 <script type="text/javascript"> var feed = new Instafeed({ get: 'user', userId: '2201292293', clientId: 'MY_CLIENT_ID', accessToken:`'MY_ACCESS_TOKEN', limit: '364', sortBy: 'most-li
<script type="text/javascript">
var feed = new Instafeed({
get: 'user',
userId: '2201292293',
clientId: 'MY_CLIENT_ID',
accessToken:`'MY_ACCESS_TOKEN',
limit: '364',
sortBy: 'most-liked',
template: '<a href="{{image}}" class="popup"><img src="{{image}}"></a>{{likes}}',
resolution: 'standard_resolution'
});
feed.run();
提前谢谢你,Laurenz Strauch这可能是分页造成的 加
试试这个代码 请更具体地说,您使用哪种api?您使用哪个端点?你已经试过什么了?应该有这样的限制。@JozefCipa我使用Instagram API Instagram.com/developer@JozefCipa我还使用instafeed.js在我的网站上显示它,在那里我写了限制:364…真的有20多张图片吗?我不知道你到底想做什么。您想通过用户或标签获取图像,或者如何获取图像?请同时显示您的代码。@JozefCipa我网站的代码现在位于问题中。我想做的是:我希望instafeed.js在我的网站上显示我的帖子用户,但Instagram只允许你发布20张图片。所以我想知道是否有可能展示20多张图片。
<button id="load-more">
Load more
</button>
<script type="text/javascript">
var loadButton = document.getElementById('load-more');
var feed = new Instafeed({
get: 'user',
userId: '2201292293',
clientId: 'MY_CLIENT_ID',
accessToken:`'MY_ACCESS_TOKEN',
limit: '364',
sortBy: 'most-liked',
template: '<a href="{{image}}" class="popup"><img src="{{image}}"></a>{{likes}}',
resolution: 'standard_resolution'
// every time we load more, run this function
after: function() {
// disable button if no more results to load
if (!this.hasNext()) {
loadButton.setAttribute('disabled', 'disabled');
}
},
});
// bind the load more button
loadButton.addEventListener('click', function() {
feed.next();
});
// run our feed!
feed.run();
</script>