Added untested publish method which removes a lot of code duplication and provides a generic way of handling all publishing methods to FB.