I just made an macro to toggle it off and on when I'm healing or DPSing. Makes it easier than going through the settings every time I change classes.
All you need is /autofacetarget

You can also separate it into "/autofacetarget on" and "/autofacetarget off" so you can let yourself know which one you have active (via /echo command).