现在还有没有办法在不使用访问令牌的情况下获取 Instagram 提要 (06/2016)? [英] Is there still a way to fetch instagram feed without using access token now (06/2016)?

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

问题描述

我遇到了一个问题,我的 Instagram API 访问令牌经常过期,我修改了文档并了解虽然令牌通常不会过期,但 Instagram 可能会出于任何安全原因或任何原因随时决定使令牌过期.

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

所以我想知道是否还有一种方法可以在不使用访问令牌的情况下获取提要,因为我只是在拉入我自己的提要.或者有什么其他方法可以解决这个问题?

感谢您的帮助.

解决方案

EDIT :您现在可以通过以下链接轻松获取您的个人资料的 json 数据:

更多信息参考 相关答案

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.

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?

Thanks for your help.

解决方案

EDIT : you can now get the json data of your profile simply with this link : https://www.instagram.com/anyuser/?__a=1


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

example: https://www.instagram.com/bestcookingvideos/media

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

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

2020.11.17

As in the answer you can get the profile details with 12 recent post via https://www.instagram.com/anyuser/?__a=1 but the problem is that this does not allowed to fetch media pagination. So for that you need to use

https://instagram.com/graphql/query/?query_id=17888483320059182&variables={"id":"15165085906","first":20,"after":null}

Above route will return first 20 media of the relevant user who belongs to the id and when we need get next 20 we need to pass the end_cursor which is in initial call .

For more info ref related answer

这篇关于现在还有没有办法在不使用访问令牌的情况下获取 Instagram 提要 (06/2016)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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