I would like to know how to add a picture to an event using the Facebook Graph API. I have seen this question and tried some variations on that theme, without any success. The o
Here is a sample example using FbGraph written by Nov Matake in Ruby on Rails. I spend lots of hours to figure out, How to upload an image for an event. I hope this will help and save others time.
me = FbGraph::User.me(ACCESS_TOKEN)
event = me.event!(
:name => 'FbGraph test event',
:start_time => 1.week.from_now.to_i,
:end_time => 2.week.from_now.to_i,
:picture => File.new("/home/jeetu/Desktop/my_birthday.png")
)