facebook.request("me") does not return any values

Hi,

I am trying to get the public profile of the user that logs in via FB. To login in, I use

facebook.login(facebookListener, { "public\_profile" })

See listener below. However, the response from FB only contains id and name, nothing else. I have read the plugin docs and the references to the FB Graph api but I cannot see what I am doing wrong. Any hints?

function facebookListener(event) if (event.type == "session") then if (event.phase == "login") then local accessToken = event.token if (accessToken ~= nil) then facebook.request("me") end elseif ((event.phase == "loginFailed") or (event.phase == "loginCancelled")) then [handle failed login] end elseif (event.type == "request") then if (not event.isError) then local response = json.decode(event.response) if (response.id ~= nil) then printTable(response) end else [handle error] end end end

This is a normal FB response (with standard permissions) what else was you expecting?

If I understand the docs correctly, I should get different data depending on that what permission I asked for when logging in. I have tried several of the permissions (https://developers.facebook.com/docs/facebook-login/permissions#reference-user_friends) but I always just get the id and name when I retrieve the “me” object.

E.g. setting the permissions for “email” when logging in does not include the email in the response of a “me” request. However, when I grant the permission in the FB app, it clearly states that the app will have access to my email address if I accept the login request,

This is a normal FB response (with standard permissions) what else was you expecting?

If I understand the docs correctly, I should get different data depending on that what permission I asked for when logging in. I have tried several of the permissions (https://developers.facebook.com/docs/facebook-login/permissions#reference-user_friends) but I always just get the id and name when I retrieve the “me” object.

E.g. setting the permissions for “email” when logging in does not include the email in the response of a “me” request. However, when I grant the permission in the FB app, it clearly states that the app will have access to my email address if I accept the login request,