Added debugged and fixed version of in-facebook authentication