Partial Outageshare-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
Asked about a month ago
Selected Answer
1

Same issue. Following!

October 10 at 3:38 PM
Brent