In Mass you can through an oil filter in the trash if you drain it and put it in a bag with absorbent material.
However all service stations and many marinas have a drum where you can place filters to be recycled. Generally the same place you're going to drop off the oil.
The problem with the trash disposal is that unless you hot drained the filter
and also punctured the anti drain back valve (sounds like you did not) there is a lot of oil in the filter.
Recycling is easier.
_____________
From Mass regs for citizens (commercial rules differ)
"Oil filters: Puncture domed part of the oil filter with a sharp tool. Drain filters on a rack while they are hot for 12 hours, capture the oil for recycling as described above. "
Used Oil Filters:
- Do NOT dispose of an undrained oil filter in the trash. Follow above handling instructions for draining used oil filters.
- Take used oil filters in a sealed bag or container to a municipal collection program in your community, if available. Many communities that collect used oil also collect used oil filters.
- If no recycling program is available in your community, wrap the drained used oil filter in a plastic bag with absorbents such as a rag or kitty litter, and place in the trash."