Logging Facebook auth response for #3110
This commit is contained in:
parent
51408a94de
commit
af77dc39b8
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@ module.exports = FacebookHandler = class FacebookHandler extends CocoClass
|
||||||
FB.api('/me', {fields: 'email,last_name,first_name,gender'}, @onReceiveMeInfo)
|
FB.api('/me', {fields: 'email,last_name,first_name,gender'}, @onReceiveMeInfo)
|
||||||
|
|
||||||
onReceiveMeInfo: (r) =>
|
onReceiveMeInfo: (r) =>
|
||||||
|
console.log "Got Facebook user info:", r
|
||||||
unless r.email
|
unless r.email
|
||||||
console.error('could not get data, since no email provided')
|
console.error('could not get data, since no email provided')
|
||||||
return
|
return
|
||||||
|
|
Reference in a new issue