Why publishing to Facebook is not working properly?