Skip to content

Instantly share code, notes, and snippets.

@ritik1009
Created December 5, 2022 01:37
Show Gist options
  • Save ritik1009/a969d3beae48b60d5507ae48caf2d0c4 to your computer and use it in GitHub Desktop.
Save ritik1009/a969d3beae48b60d5507ae48caf2d0c4 to your computer and use it in GitHub Desktop.
graph_url = 'https://graph.facebook.com/v15.0/'
def status_of_upload(ig_container_id = '',access_token=''):
url = graph_url + ig_container_id
param = {}
param['access_token'] = access_token
param['fields'] = 'status_code'
response = requests.get(url,params=param)
response = response.json()
return response
####################################### OUTPUT #############################################
{
"status_code": "FINISHED",
"id": "17889615691921648"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment