Closed astagi closed 2 months ago
You can follow the docs to publish photos
Hello @astagi were you able to figure this out?
Unfortunately not @josylad I'd like to have a complete example with a local image to upload..
Unfortunately not @josylad I'd like to have a complete example with a local image to upload..
oh! Well, I was able to figure it out. @astagi
image_data = {"url": image_url, "message": content}
#upload an image
uploaded_image = api.post_object(object_id=page_id, connection="photos", data=image_data)
change connection to "photos" message = text you want to post on FB.
Hi,
do you have any example for posting a text with a local image? I got this code example but I don't know which parameters include in the request.
Thank you!