Change enum to integer
Fix facebook email error
Merge pull request #343 from SingularityGuy/fixing-errors

Fixing errors