现在(06/2016)是否仍然有一种方法可以在不使用访问令牌的情况下获取instagram feed? [英] Is there still a way to fetch instagram feed without using access token now (06/2016)?

查看:110
本文介绍了现在(06/2016)是否仍然有一种方法可以在不使用访问令牌的情况下获取instagram feed?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到一个问题,我的Instagram API访问令牌一直频繁过期,因此我对文档进行了红色修改,并理解,尽管该令牌通常不会过期,但出于安全原因或任何原因,Instagram可能会决定随时终止令牌。

I have an issue that my Instagram API access token keeps expiring frequently and I red the document and understood that although the token wouldn't expire generally, Instagram may decide to expire a token any time for any security reason or whatever reasons.

我知道当它过期时,我需要设置一个身份验证过程并请求一个新的令牌以及所有其他东西。但是问题是我的应用只是检索自己的供稿以显示在我自己的网站上,一旦令牌过期,设置这种过程就没有意义,我唯一能做的就是手动检索和更新我的代码中的令牌。

I know that when it expires, I need to set up an authentication process and request for a new token and all those of things. But the problem is that my app is just retrieving my own feeds to show on my own website, once the token expires it doesn't make sense to set up such a process, the only thing I can do is to manually retrieve and update the token in my code.

所以我想知道是否还有一种方法可以获取Feed而不使用访问令牌,因为我只是在提取自己的Feed。还是有其他方法可以解决此问题?

So I was wondering if there is still a way to get feeds without using access token as I am just pulling in my own feeds. Or is there any other way I can solve this issue?

感谢您的帮助。

推荐答案

如果您的个人资料设置为公开模式,则可以从json响应中获取数据,只需编写:
https://www.instagram.com/YOURUSERNAME/media

If your profile is set to public mode you can fetch your data from json response just write: https://www.instagram.com/YOURUSERNAME/media

示例: https://www.instagram.com/bestcookingvideos/media

您可以请参阅以下json结构: http://json.parser.online.fr/

you can see json structure with : http://json.parser.online.fr/

注意:此页面不再有效: https:// www.instagram.com/YOURUSERNAME/media

Note: This page is not active anymore : https://www.instagram.com/YOURUSERNAME/media

这篇关于现在(06/2016)是否仍然有一种方法可以在不使用访问令牌的情况下获取instagram feed?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆