我一直在使用Instagram javascript发送javascript,但它不会打印屏幕图片和文本,我的代码与示例相同。
<script type="text/javascript">
var userFeed = new Instafeed({
get: 'user',
userId: '2216402239',
clientId: '577953a9c38a4be890fb6f96326d60d0',
accessToken: '2216402239.577953a.5c12d84b7a784b5497f383a8e1daf4dc',
resolution: 'standard_resolution',
template: '<a href="{{link}}" target="_blank" id=""><img src="{{image}}" /></a>',
sortBy: 'most-recent',
limit: 6,
links: false
});
userFeed.run();
</script>
答案 0 :(得分:0)
您没有在Instafeed模板中设置任何占位符,例如{{link}}
或{{image}}
。它应该像这样工作:
var userFeed = new Instafeed({
get: 'user',
userId: '2216402239',
clientId: '577953a9c38a4be890fb6f96326d60d0',
accessToken: '2216402239.577953a.5c12d84b7a784b5497f383a8e1daf4dc',
resolution: 'standard_resolution',
template: '<a href="{{link}}" target="_blank" id=""><img src="{{image}}" /></a>',
sortBy: 'most-recent',
limit: 6,
links: false
});
userFeed.run();