Fix Facebook publication and exception handling