Hi everyone, same issue for me… I don’t seem to be able to request Facebook extended permissions anymore (was working fine a couple of weeks ago). I also assumed this was because my Facebook app now needs to go through a review process. However, I removed all extended permissions that required a review process by Facebook. I’m now only requesting the email extended permission, but event.response.email is nil in my Facebook listener.
@Rob, you mentioned that we now need to make a second login call as of V3.14 iOS Facebook SDK. Is there a link to this in the Corona docs anywhere? I can’t find any mention of this in the facebook.login() documentation:
http://docs.coronalabs.com/api/library/facebook/login.html
nor the Implementing Facebook documentation:
http://docs.coronalabs.com/guide/social/implementFacebook/index.html
If anyone can point me in the right direction, I’d be very grateful. Here’s my code, for clarity:
[lua]
local function facebookListener( event )
if not event.isError then
if event.type == “session” then
print(“event is session”)
if event.phase == “login” then
print(“logging in”)
sessionToken = event.token
sessionExpiry = event.expiration
print(event.token)
if sessionToken then
facebook.request( “me” )
end
end
elseif event.type == “request” then
if not event.isError then
local fbResponse = json.decode(event.response)
print(“event is request”)
print("event.response = " … event.response)
print("event.response.email = " … fbResponse.email)
else
local alert = native.showAlert( “Oh No”, “Facebook Connect Error!” , {“ok”} )
end
end
else
end
end
facebook.login( fbAppId,facebookListener,{ “email” })
[/lua]