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.