Implements facebook authentication