【发布时间】:2016-06-09 07:15:23
【问题描述】:
我只是想知道如何在我的网站上获取 Instagram 提要。 我刚刚尝试过,但如果我包含嵌入代码,它仅适用于该特定提要。 我需要的是;将我的 Instagram 的所有提要获取到我的网站,而不是特定提要。 我试过的代码就在这里
<blockquote class="instagram-media" data-instgrm-captioned data-instgrm-version="7" style=" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:658px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);"><div style="padding:8px;"> <div style=" background:#F8F8F8; line-height:0; margin-top:40px; padding:50.0% 0; text-align:center; width:100%;"> <div style=" background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURczMzPf399fX1+bm5mzY9AMAAADiSURBVDjLvZXbEsMgCES5/P8/t9FuRVCRmU73JWlzosgSIIZURCjo/ad+EQJJB4Hv8BFt+IDpQoCx1wjOSBFhh2XssxEIYn3ulI/6MNReE07UIWJEv8UEOWDS88LY97kqyTliJKKtuYBbruAyVh5wOHiXmpi5we58Ek028czwyuQdLKPG1Bkb4NnM+VeAnfHqn1k4+GPT6uGQcvu2h2OVuIf/gWUFyy8OWEpdyZSa3aVCqpVoVvzZZ2VTnn2wU8qzVjDDetO90GSy9mVLqtgYSy231MxrY6I2gGqjrTY0L8fxCxfCBbhWrsYYAAAAAElFTkSuQmCC); display:block; height:44px; margin:0 auto -44px; position:relative; top:-22px; width:44px;"></div></div> <p style=" margin:8px 0 0 0; padding:0 4px;"> <a href="https://www.instagram.com/p/BGUbA_UyBCl/" style=" color:#000; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:normal; line-height:17px; text-decoration:none; word-wrap:break-word;" target="_blank">It's national #gardening #exercise day! Yes, seriously. Get moving and pick up some Class A #organic #compost from #RIRRC! #gardener #gardenlove #gardenlife #bloom</a></p> <p style=" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; line-height:17px; margin-bottom:0; margin-top:8px; overflow:hidden; padding:8px 0 7px; text-align:center; text-overflow:ellipsis; white-space:nowrap;">A photo posted by Rhode Island Resource Recovery (@rirrc) on <time style=" font-family:Arial,sans-serif; font-size:14px; line-height:17px;" datetime="2016-06-06T16:05:29+00:00">Jun 6, 2016 at 9:05am PDT</time></p></div></blockquote>
谁能建议我如何做到这一点?
【问题讨论】:
-
老实说,我不明白你的 html 是做什么的,但你可以看看 instafeed
-
这是嵌入代码,但仅适用于特定的提要
-
首先,您的代码不是提要。这是将特定图像嵌入页面的代码,可以很容易地用 标记替换。因此,它只会嵌入特定的图像(而不是提要)。正如 Dmitri Tsoy 上面所说,试试 instafeed.js ( google it )。
-
是的..它不是提要..它只是特定图像的嵌入代码。我想知道是否可以添加所有提要
标签: javascript jquery html css instagram