Halloween is not part of the sunnah. The having fun justification opens the door to other things that will send the wrong message to children, adults and even non-Muslims. Halloween, like many holidays, is based on pagan customs with nothing associated with Allah, but rather with shaytaan. There are alternatives to this, but trick or treating is not sahih.