How do I upload image when creating the event on graph api?
Example:
user.facebook.put_object("me", "events", name="test", start_time=start_date, end_time=end_date, picture=image)
I’ve tried:
image = 'C:\\Path\\to\\image.jpg' #and
image = open('C:\\Path\\to\\image.jpg', 'a') #and
image = open('C:\\Path\\to\\image.jpg', 'a').read() #and
None worked.
From the docs on github: https://github.com/pythonforfacebook/facebook-sdk/