Created
September 11, 2022 11:51
-
-
Save ritik1009/e111485e8116d48e83dd477319656916 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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