publish: add sanity-check before publishing

Twitter and Facebook have certain post types they do not support.
Added a small sanity-check that lets us report a helpful error message
instead of first trying and then trying to interpret the failure.