[英]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.