0

当我尝试最基本的嵌入时,instafeed 网站提供的 js 脚本不起作用。

<!doctype html>

<html lang="en">
<head>
  <meta charset="utf-8">

  <title>The HTML5 Herald</title>
  <meta name="description" content="The HTML5 Herald">
  <meta name="author" content="SitePoint">

  <link rel="stylesheet" href="css/styles.css?v=1.0">
<script type="text/javascript" src="instafeed/instafeed.min.js"></script>

  <!--[if lt IE 9]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  <![endif]-->
</head>

<body>
  <script src="js/scripts.js"></script>

<div id="instafeed"></div>

<script type="text/javascript">
    var feed = new Instafeed({
        get: 'tagged',
        tagName: 'awesome',
        clientId: 'CLIENTID'
    });
    feed.run();
</script>

</body>
</html>

我必须做什么才能让提要显示任何内容?

4

1 回答 1

0

您需要一个真实的 clientID 才能正确显示。你从 Instagram 收到了吗?

于 2016-03-29T14:04:06.720 回答