fbcmd is a command line interface (CLI) for facebook.
It is open source and is both "free as speech" and "free as in beer". It works in Windows, Mac and Linux.
It was originally created for fast status updates and posting items to your news feed, but it has lots of additional cool commands.
fbcmd was developed by Dave Tompkins