Skip to content

Instantly share code, notes, and snippets.

@ritik1009
Created September 11, 2022 11:51
Show Gist options
  • Save ritik1009/e111485e8116d48e83dd477319656916 to your computer and use it in GitHub Desktop.
Save ritik1009/e111485e8116d48e83dd477319656916 to your computer and use it in GitHub Desktop.
def get_all_the_media(access_token = ''):
url = graph_url + 'me/media'
param = dict()
param['fields'] = 'id,username,caption,media_type,media_url,permalink,timestamp'
param['access_token'] = access_token
response = requests.get(url=url,params = param)
response = response.json()
return response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment