This is a bare-bone demonstration of how to post to walls with Facebook Graph API. (If you are already logged in, click the Logout button first.)
http://www.permadi.com/blog/2011/04/javascript-facebook-graph-api-posting-feed-with-picture-to-walls/