javascript - 单击我们网站上嵌入的图像时如何打开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 上显示帖子。
解决方案
推荐阅读
- assembly - x86 MASM 程序集中的寻址模式和内存源与目标
- c# - LINQ - 从列表 2 中返回数据
- gcc - GCC 致命错误 makefile 中没有输入文件
- pine-script - 使用 heikin ashi 策略进入和退出,但它在 longcondition 中显示错误
- cloud - 公司不同部门的大数据如何存储在云端?
- excel - 求和动态范围Excel VBA
- amazon-s3 - 如何通过 EventBridge 将 S3 文件名传递给 ECS 任务(Fargate)的状态机
- javascript - 用样式化组件反应滚动不起作用
- android - AWS SNS 向后台 Android 应用程序推送通知
- android - 锁定屏幕上的透明活动