Well, you could write your own, but you'd have to have users authenticate the application. In my opinion, this isn't much different than twitter, since both actions would require two clicks:
as far as i'm aware, you can't really write your own. I was watching the network traffic for a submit and it was pretty ridiculous how many transactions it did when you clicked "like" (about 4 if i remember correctly). Having the users authenticate the action would actually be good for sites like mine but facebook doesn't seem to provide that option.