If you granded the publish_actions permission to the application, you can post a message to your feed.


You can also use the Facebook UI dialog. Check out this example.