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
I had the same problem, this code work for me:
// create the event // ... // upload the picture $file = "pathtothefile"; $args[basename($file)] = '@' . realpath($file); $data = $facebook->api('/'. $event_id, 'post', $args);
But sometimes I get "(#324) Missing or invalid image file" error