Instagram API: user feeds returning an html 404 page

别等时光非礼了梦想. 提交于 2019-12-13 14:41:20

问题


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:

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

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)

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


回答1:


It works with user-id not 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=



来源:https://stackoverflow.com/questions/29660603/instagram-api-user-feeds-returning-an-html-404-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!