[英]Jquery Instagram feed doesn't work only with my username
在一个带有 Jquery instagram 提要的网站上遇到了问题,该提要几天以来没有任何理由仅使用我的用户名。
Jquery 插件可与任何 instagram acc 一起使用(他获取最后的帖子并将其呈现在您的网站上),现在,它呈现任何帐户但不是我的。 使用我的@username 时出现空白页(与正常情况下的几天相同)
如果我尝试使用私人账户,我会收到一条消息,告诉我这个帐户是私人的,所以这不是 de pb。 而且insta acc没有修改
这是我的代码
<div class="container">
<div id="instagram-feed-demo" class="instagram_feed"></div>
</div>
<script src="https://www.jqueryscript.net/demo/Instagram-Photos-Without-API-
instagramFeed/jquery.instagramFeed.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script>
(function($){
$(window).on('load', function(){
$.instagramFeed({
'username': 'sensationvtt',
'container': "#instagram-feed-demo",
'display_profile': false,
'display_biography': false,
'display_gallery': true,
'get_raw_json': false,
'callback': null,
'styling': true,
'items': 36,
'items_per_row': 6,
'margin': 0.3
});
});
})(jQuery);
</script>
<br></br>
<!-- partial -->
<script src='https://www.jqueryscript.net/demo/Instagram-Photos-Without-API-
instagramFeed/jquery.instagramFeed.js'></script>
<script src='https://code.jquery.com/jquery-1.12.4.min.js'></script>
如果您将“sensationvtt”替换为“github”或任何其他公共帐户,您将看到一个有效的提要。
提前致谢
您的个人资料似乎有年龄限制,类似于设置为私人,不适用于此插件。
这是一个jsFiddle 。 您会注意到我添加了'on_error': console.error
,这是我确定您的个人资料有年龄限制的方式。 错误信息是:
Instagram Feed:您尝试获取的个人资料似乎有年龄限制。 见https://github.com/jsanahuja/InstagramFeed/issues/26
这是代码:
<html>
<body>
<div class="container">
<div id="instagram-feed-demo"></div>
</div>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="https://www.jqueryscript.net/demo/Instagram-Photos-Without-API-instagramFeed/jquery.instagramFeed.js"></script>
<script>
(function($){
$(window).on('load', function(){
$.instagramFeed({
'username': "sensationvtt",
'container': "#instagram-feed-demo",
'display_profile': false,
'display_biography': false,
'display_gallery': true,
'get_raw_json': false,
'max_tries': 8,
'callback': null,
'styling': true,
'items': 36,
'items_per_row': 6,
'margin': 0.3,
'lazy_load': true,
'on_error': console.error
});
});
})(jQuery);
</script>
</body>
</html>
在 Instagram 添加安全层之前,该插件曾经可以工作。 我们的团队覆盖了这个插件来解决这个问题。
请在此处检查插件:
https://github.com/reillo/jquery.instagramFeed
请仔细阅读文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.