2015-04-15 45 views
3

最近,不知道从什么时候,当通过PHP请求一个Istagram用户饲料(或只是通过浏览器命中URL),我收到一个404错误页面...在HTML :Instagram的API:用户反馈返回一个HTML 404页面

例如,比较:
https://api.instagram.com/v1/users/bigbangtheory_cbs/media/recent/
(404错误页面,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供稿/错误消息)

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

回答

2

它与user-iduser-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=

+0

wooops ...感谢捕捉错误! – Giona

+1

它询问access_token。如果使用'client_id'和'user-id',我会得到这个错误。 “{”meta“:{”error_type“:”OAuthAccessTokenException“,”code“:400,”error_message“:”提供的access_token无效。“}} –

+0

@PrabuGuna他们已经更新了API,因此您现在必须使用access所有端点的标记。 –