A
A
Artyom Innokentiev2016-01-31 12:14:43
Python
Artyom Innokentiev, 2016-01-31 12:14:43

Why does the Instagram API return an empty response?

1) I'm in Sandbox Mode
2) Authentication based on Server-side (Explicit) Flow
3) "Disable implicit OAuth" is checked in Manage Clients
4) I authorized the User - Instagram API returned a response with access_token and user
When I try to get data through Relationship Endpoints Instagram API returns a request like this:
{"pagination":{},"meta":{"code":200},"data":[]}
Code:

ACCESS_TOKEN = xxxxx
url = 'https://api.instagram.com/v1/users/self/follows?access_token=%s' % ACCESS_TOKEN
response = requests.get(url)
data = response.text

When I open the link in the browser - the same result.
What is the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nicholas, 2016-01-31
@healqq

As I understand it, only users authorized in your app will be returned to you. Since it's sandbox mode. You can create a second account, authorize it in your application and follow. sandbox mode section Sandbox Users

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question