Instagram API:我想根据标签获取最近的图像,但我只收到我自己的 [英] Instagram API: I want to get recent images based on tag, but I only recieve my own

查看:14
本文介绍了Instagram API:我想根据标签获取最近的图像,但我只收到我自己的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Instagram API 根据特定标签获取最新图片.

I want to use Instagram API to get the latest images based on a specific tag.

当我使用时:

https://api.instagram.com/v1/tags/{tag-name}/media/recent?access_token=ACCESS-TOKEN

我只收到我的用户使用该标签创建的图像.我想获取所有标记的图像,而不仅仅是我自己的.它应该这样做吗?

I only recieve the images that my user has created with that tag. I want to get all tagged images, not just my own. Is it supposed to do that?

当我尝试时:

https://api.instagram.com/v1/tags/{tag-name}?access_token=ACCESS-TOKEN

然后它起作用了,我不仅从自己的图像中获取统计信息.
任何帮助都会很棒!

Then it works and I get statistics from not just my own images.
Any help would be awesome!

推荐答案

您处于沙盒模式,因此它只会返回您的沙盒授权用户的媒体,以下是相关信息:

You are in Sandbox mode, so it will return only media from your sandbox authorized user, here is information about this:

作为另一个例子,让我们考虑一个返回列表的端点媒体:/tags/{tag-name}/media/recent.这个返回的响应正如预期的那样,端点将仅包含具有给定标签的媒体.但而不是从任何公共 Instagram 用户返回媒体,它会仅返回属于您的沙盒用户的媒体,仅限于每个用户的最后 20 个.

As another example, let's consider an endpoint that returns a list of media: /tags/{tag-name}/media/recent. The response returned by this endpoint will contain only media with the given tag, as expected. But instead of returning media from any public Instagram user, it will return only media that belongs to your sandbox users, restricted to the last 20 for each user.

这里是有关沙盒模式的更多详细信息的链接:https://www.instagram.com/开发者/沙盒/

Here is the link to more details about Sandbox mode: https://www.instagram.com/developer/sandbox/

一旦您的应用获得批准,您将看到所有媒体.

Once your app is approved, you will see all media.

这篇关于Instagram API:我想根据标签获取最近的图像,但我只收到我自己的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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