Facebook integration
fixing puts on file helper to write binary data