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