formatting; removed unnecessary use-statements
implemented facebook EndpointFactory