Updated Facebook API to output root element