首页 > 解决方案 > 单击我们网站上嵌入的图像时如何打开instagram

问题描述

我在 instafeed.js 插件中工作,将 insta 帖子嵌入到我们的网站。当我点击它们时它会显示帖子它应该在 Instagram 上打开我的帖子,但它会在单独的页面上显示帖子的图像。如何解决这个问题呢。我用于插件的代码是

    <script type="text/javascript">
        var userFeed = new Instafeed({
            get: 'user',
            target: "instafeed-container",
            resolution: 'standard_resolution',
            limit:9,
            accessToken: 'here is my instagram access code that is working',
            template: '<a href="{{image}}"  target="_blank"><img id="images" title="{{caption}}" src="{{image}}" /><p style="width: 25%; height: 25%;" for="images">{{caption}}</p></a>',
            templateBoundaries: ['{{','}}']
        });
        userFeed.run();
    </script>

当用户点击图片时,如何在 Instagram 上显示帖子。

标签: javascripthtmlplugins

解决方案


推荐阅读