Using Instafeed with Squarespace: Instagram API issue

时间:2016-04-15 11:03:15

标签: javascript instagram-api squarespace instafeedjs

I have an issue when trying to implement instafeed with Squarespace... it works well with the client ID I generated from my personal instagram account, but when I try switching to another account and generating a new client ID to plug into the code, it doesn't work. Any thoughts? The second account I am trying with has way more followers, would that be a factor?

<script type="text/javascript">
    var feed = new Instafeed({
        get: 'user',
        userId: '-------------',
        clientId: '------------------------------',
        get: 'tagged', 
        tagName: 'anytag', 
        target: 'insta-grid',
        sortBy: 'most-recent',
        limit: '60',
        resolution: 'standard_resolution',
        template: '<a class="lightbox" href="#{{id}}"><img src="{{image}}"/></a><div class="lightbox-target" id="{{id}}"><img src="{{image}}"/><div id="lightbox-text">{{caption}}</div><a class="lightbox-close" href="#"></a></div>'
    });
    feed.run();
</script>

1 个答案:

答案 0 :(得分:0)

您可能无法正确配置Instagram accessids的权限。我先检查一下。

但更重要的是,为什么不使用Squarespace内置的Instagram Block?它与Instafeed完全相同。 https://support.squarespace.com/hc/en-us/articles/206543367