嵌入多个Instagram图片,但没有access_token [英] Embed multiple instagram images without access_token
问题描述
instagram 文档说:
The instagram docs say:
https://api.instagram.com/v1/tags/nofilter/media/recent?access_token=ACCESS_TOKEN
Instagram API要求每个端点的身份验证用户都来自access_token
.我们不再支持仅使用client_id
进行请求.
The Instagram API requires an access_token
from authenticated users for each endpoint. We no longer support making requests using just the client_id
.
但是要获得access_token
,我网站的用户必须单击并进行身份验证,对吗?
But to get an access_token
, users of my website must click through and authenticate, right?
如何在我的公共网站上显示一些特定instagram标记的图片,而无需用户通过其instagram帐户登录?
How can I display a few pictures of a specific instagram-tag on my public website, without requiring users to sign in via their instagram-account?
(似乎还有其他页面正在执行此操作,是否有一个内嵌iframe来显示多张图片?我只找到了一个可以显示一张特定图片的页面...)
(There seem to be other pages doing it somehow, is there an iframe embed that displays multiple images? I've only found one where you can display one specific image...)
更新:此WordPress插件似乎是通过管理员(即我)一次生成access_token
,然后让页面将其用于所有用户.这种方法有什么缺点吗?
Update: This WordPress plugin seems to do it with having the admin (i.e. me) generate the access_token
once and then having the page use it for all users. Any drawbacks to that approach?
推荐答案
如果access_token
由于某种原因过期或instagram使它无效,则它将停止工作,您不应该假设access_token
永远有效.
if that access_token
expires for some reason or instagram invalidates it, then it will stop working, you should not assume access_token
is valid forever.
通常它不会经常失效,因此,如果您持续监视窗口小部件并更新access_token
(如果它已停止工作),那么您应该很好.
Usually it does not expire that often, so if you monitor your widget constantly and update access_token
if it has stopped working, then you should be good.
这篇关于嵌入多个Instagram图片,但没有access_token的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!