'Error 'Provide valid app ID in Instagram' even adding a valid 'app_id' and a valid 'access_token'
To make the call, the access_token is needed, but when making the call, an app_id error appears, even adding to the data, it still returns an error. How should I proceed?
import requests
access_token = 'AAAAAAAAAAAAAAAAAAAAAAAA'
app_id = 'BBBBBBBBBBBBBBBB'
id_facebook_page = 'CCCCCCCCCCCCCCCC'
get_instagram_business_account = 'https://graph.facebook.com/v13.0/' + id_facebook_page + '?fields=instagram_business_account&access_token=' + access_token
instagram_business_account = 'DDDDDDDDDDDDDDDD'
image = 'https://upload.wikimedia.org/wikipedia/en/9/95/Test_image.jpg'
text = 'Hello World'
formData = {
'image_url': image,
'caption': text,
'access_token': access_token,
'app_id': app_id
}
options = {
'method' : 'post',
'payload' : formData
}
container = 'https://graph.facebook.com/v13.0/' + instagram_business_account + '/media'
response = requests.get(container, data=options)
print(response.text)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
