jquery - 将 Instagram 照片拉至网站

标签 jquery instagram

我从论坛上学到了这一点,但它对我不起作用。照片没有只显示标题。

有人可以帮我吗?

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery-instagram/0.2.2/jquery.instagram.min.js"></script>
<title>Instagram Demo</title>

</head>

<body>

<h1>jQuery Instagram demo</h1>

<div class="instagram"></div>
<script type="text/javascript">
    $(".instagram").instagram({
        userId: '0ce2a8c0d92248cab8d2a9d024f7f3ca',
        accessToken: '34834147.0ce2a8c.92d5a4d1d326438fb063a31b63e208a2',
        image_size: 'standard_resolution',
    });
    </script>


</body>
</html>

谢谢!

最佳答案

Instafeed.js 是一种将 Instagram 照片添加到您的网站的极其简单的方法。不需要 jQuery,只需简单的 'ol javascript

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

检查此链接 INSTAFEED

做了一个Insta demo为你

关于jquery - 将 Instagram 照片拉至网站,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18478579/

相关文章:

jquery - 从左到右动画显示/隐藏 div

javascript - Meteor session 试图触发模板渲染

jquery - 如何引用同一元素中的另一个元素 <p :dataTable><p:column> using jQuery

javascript - 如何从 Instagram 应用内浏览器页面链接打开默认浏览器?

ios - UIDocumentInteractionController 通过 Instagram 分享(且仅限 Instagram)

android - 如何将 Android 库添加到我项目的 build.gradle 文件(在 Android Studio 中)?

javascript - 如何从外部文件 JSON 创建 JAVASCRIPT ARRAY

javascript - 适用于 Web 应用程序的最佳非 Flash 上传组件?

java - 通过 instagram api 获取评论

Instagram API 限制从 5000 减少至 200