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 official documentation doesn’t seem to make any mention of it.
I’m using PHP for this particular project and I’ve looked at the PHP SDK source code, which is not helpful in any way. Requesting metadata for pictures using https://graph.facebook.com/eventid/picture?metadata=1&access_token… doesn’t seem to be recognized, so no help there either.
Has anyone come across some example or documentation on how to do this? (don’t care about which language it is in)
It appears to be something that is not yet supported by the Graph API. It is not mentioned in the official documentation, and attempts Graph-ify old style API calls do not appear to work.
There has been some discussion on what various people have tried on this forum:
http://forum.developers.facebook.com/viewtopic.php?id=56717
For now, it seems the only option is to use the old API (official documentation). Paarth’s answer provides some additional useful links to get started with that. However, since my question was specifically about the Graph API, the answer (for now) is: it cannot be done.
I’ll update this answer as support for event picture uploading is added to the Graph API.