Promises in fb login