Fixing syntax errors with FB integration.

Tested with a local startup and works fine.