To send Facebook updates from your app you need to register your app with Facebook. Having an app on Facebook allows it to have a presence on the Facebook site and means that the app name is included on any wall posts.
The next two examples show how to set up and create Facebook posts from your app; first the Facebook registration.