in the following code I can send a message on my facebook page. I would also like to insert an image, could you tell me how to do it?
page_id_1 = XXXXXXXXXX
facebook_access_token_1 = 'XXXXXXXXXX'
post_url = 'https://graph.facebook.com/{}/feed'.format(page_id_1)
msg = 'example text'
payload = {
'message': msg,
'access_token': facebook_access_token_1
}
r = requests.post(post_url, data=payload)
print(r.text)
Best regards!