Interrupción parcialshare-external
Empty list returned when fetching conversations on Instagram Graph API
1
import requests

id = '<id>'

URL and endpoint

url = f"https://graph.instagram.com/v19.0/{id}/conversations"

Parameters

params = { "platform": "instagram", "access_token": '<access_token>' }

Make the GET request

response = requests.get(url, params=params)

Check the response status code (200 is OK)

print(f"Status Code: {response.status_code}")

Print the response text to see the content

print(response.json())

To which I'm getting the output:

Status Code: 200
{'data': []}

While the user is performing the Instagram Login process, I am requesting the following permissions: instagram_business_basic, instagram_business_content_publish, instagram_business_manage_messages, instagram_business_manage_comments. The relevant account is defined as a test user in the developer platform. Similarly, the user sending the message is also defined in the developer platform, yet I am still receiving an empty list. What could be the reason for this?

Uğur
Enviada hace aproximadamente un mes
Respuesta seleccionada
1

Same issue. Following!

10 de octubre a las 15:38
Brent