Created
December 7, 2022 07:28
-
-
Save ritik1009/5ebd6f77375f997a8ceef0b7c0946ac8 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
graph_url = 'https://graph.facebook.com/v15.0/' | |
# creation_id is container_id | |
def publish_container(creation_id = '',instagram_account_id='',access_token=''): | |
url = graph_url + instagram_account_id + '/media_publish' | |
param = dict() | |
param['access_token'] = access_token | |
param['creation_id'] = creation_id | |
response = requests.post(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