Instagram API 媒体端点 "invalid media id"
Instagram API media endpoint "invalid media id"
Instagram 有限制 API 可以返回多少时间来获取有关媒体对象的信息?
这个有效:
https://api.instagram.com/v1/media/shortcode/BU28yxmjEEW?access_token=XXX
这个不行:
https://api.instagram.com/v1/media/shortcode/BTxHoy2j915?access_token=XXX
我收到以下错误:
{"meta": {"code": 400, "error_type": "APINotFoundError",
"error_message": "invalid media id"}}
两张图片的唯一区别是上传日期,大约。彼此一个月。
谢谢! :)
(交叉发布 的答案)
我也运行陷入这个问题---Instagram文档不是很清楚,但这是因为沙盒模式的限制。
To help you develop and test your app, the users and media available in Sandbox mode are real Instagram data (i.e. what is normally visible in the Instagram app), but with the following conditions:
- Apps in sandbox are restricted to 10 users
- Data is restricted to the 10 users and the 20 most recent media from each of those users
- Reduced API rate limits
来自 https://www.instagram.com/developer/sandbox/.
TLDR 您需要让您的应用获得批准才能让您的其他 API 调用正常工作。
Instagram 有限制 API 可以返回多少时间来获取有关媒体对象的信息?
这个有效:
https://api.instagram.com/v1/media/shortcode/BU28yxmjEEW?access_token=XXX
这个不行:
https://api.instagram.com/v1/media/shortcode/BTxHoy2j915?access_token=XXX
我收到以下错误:
{"meta": {"code": 400, "error_type": "APINotFoundError", "error_message": "invalid media id"}}
两张图片的唯一区别是上传日期,大约。彼此一个月。
谢谢! :)
(交叉发布
我也运行陷入这个问题---Instagram文档不是很清楚,但这是因为沙盒模式的限制。
To help you develop and test your app, the users and media available in Sandbox mode are real Instagram data (i.e. what is normally visible in the Instagram app), but with the following conditions:
- Apps in sandbox are restricted to 10 users
- Data is restricted to the 10 users and the 20 most recent media from each of those users
- Reduced API rate limits
来自 https://www.instagram.com/developer/sandbox/.
TLDR 您需要让您的应用获得批准才能让您的其他 API 调用正常工作。