I am using a proxy service from proxyscrape.com, and tried to publish posts using the official Instagram Graph API. The process runs smoothly, and I am able to obtain published container ID. But the new post is not visible on the account.
If I disable the proxy, then the post is visible on the account after being created.
Below is sample code I am using
proxy = {
'http': '104.167.30.77:3128'
}
publish_url = f'https://graph.facebook.com/v20.0/{instagram_account_id}/media_publish'
parameters = {
'access_token': access_token,
'creation_id': creation_id,
}
response = requests.post(publish_url, params=parameters, proxies=proxy)
response.raise_for_status()
return response.json()
1