This task should only take minutes for any Facebook developer as it is very likely that you have already written this.
I have a Flash game (.SWF) already built and have a Facebook PHP canvas file. However, the PHP code is outdated, so I need two things:
2. Add a javacript function that allows posting of messages to users/friends/groups/pages stream that contain a title, some text, and a small image. I need this to allow people to invite others to use the game.
Please provide adequate comments on the code that you change/add so that I can update it if needed. This is mainly an experimental game, so the main objective is to have a template I can use for other games.