Facebook integration and small possible fix to find a USer

* added Facebook login
* added casting as INT for User.findOne()