Instagram这个用户不存在

时间:2022-05-07 09:11:02

I'm trying to get medida data from Instagram via their REST service. I've got an access token and tried to get some media data, I'm using this query

我正试图通过他们的REST服务从Instagram获取medida数据。我有一个访问令牌并尝试获取一些媒体数据,我正在使用此查询

https://api.instagram.com/v1/users/184692323/media/recent/?access_token=

I get this response

我收到了这个回复

{"meta":{"error_type":"APINotFoundError","code":400,"error_message":"this user does not exist"}}

The user ID does exist, I actually tried to use Lady Gaga's user ID, which I got from here: http://jelled.com/instagram/lookup-user-id# When I use my user-id, it works. It just seems to not work with other user ids.

用户ID确实存在,我实际上尝试使用Lady Gaga的用户ID,我从这里获得:http://jelled.com/instagram/lookup-user-id#当我使用我的用户ID时,它可以工作。它似乎不适用于其他用户ID。

What can I do? Is this something related to these new "sanbox" rules?

我能做什么?这是否与这些新的“sanbox”规则有关?

4 个解决方案

#1


21  

I think you are still running in Instagram Sandbox-mode: https://www.instagram.com/developer/sandbox/.

我认为你仍然在Instagram Sandbox模式下运行:https://www.instagram.com/developer/sandbox/。

Citing their page: For example, if you query the /users/{user-id}/ endpoint and the {user-id} is a sandbox user, then you will get the normal API response; but if the {user-id} is not a sandbox user, you will get a APINotFound error.

引用他们的页面:例如,如果您查询/ users / {user-id} / endpoint并且{user-id}是沙箱用户,那么您将获得正常的API响应;但如果{user-id}不是沙盒用户,则会收到APINotFound错误。

I have the same issue for non-Sandbox users, which are public but nevertheless Instagram returns it's not a valid user. So the docs seem to be correct.

对于非沙盒用户,我有同样的问题,这些用户是公开的,但是Instagram返回它不是有效用户。所以文档似乎是正确的。

#2


2  

the user exits, but you may be blocked by instagram for spamming, usually you get that response if spam was detected by an account, try with different user access_token, it should work.

用户退出,但您可能被Instagram阻止垃圾邮件,通常您会在帐户检测到垃圾邮件时获得该响应,尝试使用不同的用户access_token,它应该可以正常工作。

#3


2  

I am very late but you need to invite the user in your application's sandbox and he needs to accept your invitation to actually get any information out of it.

我很晚,但你需要在你的应用程序的沙盒中邀请用户,他需要接受你的邀请才能真正从中获取任何信息。

#4


1  

In addition to what Dennis said,

除了丹尼斯所说的,

You need to submit your App for review if you're doing things with public profiles. It's not super complicated, but you'll need to build an actual use case for them to approve your app out of sandbox mode.

如果您正在使用公开个人资料,则需要提交您的应用以供审核。它并不是非常复杂,但您需要为它们构建一个实际用例,以便从沙盒模式中批准您的应用程序。

Or, you can add the users you want to play with to your sandbox app.

或者,您可以将要玩的用户添加到沙盒应用中。

#1


21  

I think you are still running in Instagram Sandbox-mode: https://www.instagram.com/developer/sandbox/.

我认为你仍然在Instagram Sandbox模式下运行:https://www.instagram.com/developer/sandbox/。

Citing their page: For example, if you query the /users/{user-id}/ endpoint and the {user-id} is a sandbox user, then you will get the normal API response; but if the {user-id} is not a sandbox user, you will get a APINotFound error.

引用他们的页面:例如,如果您查询/ users / {user-id} / endpoint并且{user-id}是沙箱用户,那么您将获得正常的API响应;但如果{user-id}不是沙盒用户,则会收到APINotFound错误。

I have the same issue for non-Sandbox users, which are public but nevertheless Instagram returns it's not a valid user. So the docs seem to be correct.

对于非沙盒用户,我有同样的问题,这些用户是公开的,但是Instagram返回它不是有效用户。所以文档似乎是正确的。

#2


2  

the user exits, but you may be blocked by instagram for spamming, usually you get that response if spam was detected by an account, try with different user access_token, it should work.

用户退出,但您可能被Instagram阻止垃圾邮件,通常您会在帐户检测到垃圾邮件时获得该响应,尝试使用不同的用户access_token,它应该可以正常工作。

#3


2  

I am very late but you need to invite the user in your application's sandbox and he needs to accept your invitation to actually get any information out of it.

我很晚,但你需要在你的应用程序的沙盒中邀请用户,他需要接受你的邀请才能真正从中获取任何信息。

#4


1  

In addition to what Dennis said,

除了丹尼斯所说的,

You need to submit your App for review if you're doing things with public profiles. It's not super complicated, but you'll need to build an actual use case for them to approve your app out of sandbox mode.

如果您正在使用公开个人资料,则需要提交您的应用以供审核。它并不是非常复杂,但您需要为它们构建一个实际用例,以便从沙盒模式中批准您的应用程序。

Or, you can add the users you want to play with to your sandbox app.

或者,您可以将要玩的用户添加到沙盒应用中。