Instagram API:用户供稿返回HTML 404页面 [英] Instagram API: user feeds returning an html 404 page

查看:236
本文介绍了Instagram API:用户供稿返回HTML 404页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,不知道从什么时候开始,当通过PHP请求Istagram用户供稿(或只是通过浏览器访问URL)时,我收到404错误页面... html:

Recently, don't know since when, when requesting an Istagram user feed via PHP (or just hit the URL via browser) i recieve a 404 error page ... in html:

例如,比较:
https://api.instagram.com/v1/users/bigbangtheory_cbs/media/最近/
(404错误页面,html)

For instance, compare:
https://api.instagram.com/v1/users/bigbangtheory_cbs/media/recent/
(404 error page, html)

收件人:
https://api.instagram.com/v1/tags/nerd
https://api.instagram.com/v1/media/popular
https://api.instagram.com/v1/media/search?lat = 48.858844& lng = 2.294351
(json提要/错误消息(如果未通过身份验证)

To:
https://api.instagram.com/v1/tags/nerd
https://api.instagram.com/v1/media/popular
https://api.instagram.com/v1/media/search?lat=48.858844&lng=2.294351
(json feed / error message if not authenticated)

还有其他人遇到同样的问题吗?我最近不知道的Instagram API中发生了什么变化?

Anyone else is experiencing the same problem? Any change happened recently in the Instagram API i'm not aware of?

推荐答案

它适用于user-id而不是user-name:

https://api.instagram.com/v1/users/{user-id}/media/recent/?client_id=YOUR-CLIENT_ID

https://api.instagram.com/v1/users/1532488534/media/recent/?client_id =

这篇关于Instagram API:用户供稿返回HTML 404页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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