【问题标题】:Instagram API: user feeds returning an html 404 pageInstagram API:用户提要返回 html 404 页面
【发布时间】:2015-04-15 20:48:00
【问题描述】:

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

例如,比较:
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 最近发生了什么变化?

【问题讨论】:

    标签: instagram instagram-api


    【解决方案1】:

    它适用于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=

    【讨论】:

    • 它询问 access_token。如果使用client_iduser-id,我会收到此错误。 {"meta":{"error_type":"OAuthAccessTokenException","code":400,"error_message":"The access_token provided is invalid."}}
    • @PrabuGuna 他们已更新 API,因此您现在必须对所有端点使用访问令牌。
    • 实际上,使用 user-id 和 access_token 我会遇到相同的行为:API 请求的 404 HTML 页面(使用 php 的服务器端)。还有其他人面临这个问题吗?
    猜你喜欢
    • 1970-01-01
    • 2020-05-12
    • 2013-08-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-06
    • 2021-04-09
    相关资源
    最近更新 更多