I use 3" long framing nails
I mainly use them because I have a whole box, and they work.
Finding a better solution is on my list... just quite a ways down the list. :)