How To Get User's Email From facebook.request?

Hello there,
 
I would greatly appreciate it if someone can help me with this issue. I am having trouble grabbing the user’s email from facebook. Here’s my code below –

 local function facebookListener(event)       if (event.type == "session") then          if (event.phase == "login") then              sessionToken = event.token                           facebook.request("me", "GET", {fields = "email"})           end       elseif (event.type == "request") then           local response = event.response           native.showAlert("My Response", response)       end end facebook.login( fbAppID, facebookListener, {"publish\_actions, email"})

I’m not sure what’s wrong and I’ve searched and couldn’t find anything regarding Facebook user’s email. Am I suppose to insert the session token into the request somewhere?

Thank you.

Never mind. After much digging, I’ve found out that it was an outdated email issue on my Facebook account. 

The code above kept returning nothing until I’ve updated my facebook primary email address - which means that using the user’s email address as the main identifier won’t work if you’re using fb login (if anyone is looking up this exact problem).

To clarify, there was an email account attached to my facebook account. However the email used is very old so I’m guessing it was deleted and due to this, facebook’s api call for email returns nothing but your facebook id (oddly enough).

Never mind. After much digging, I’ve found out that it was an outdated email issue on my Facebook account. 

The code above kept returning nothing until I’ve updated my facebook primary email address - which means that using the user’s email address as the main identifier won’t work if you’re using fb login (if anyone is looking up this exact problem).

To clarify, there was an email account attached to my facebook account. However the email used is very old so I’m guessing it was deleted and due to this, facebook’s api call for email returns nothing but your facebook id (oddly enough).