“conventional wisdom” (from the facebook sample, and from older posts here in the forum) seems to dictate the two phase login, aka (psuedo-code):
local function listenerPhase2(event) if (event.type=="session" and event.phase=="login") then -- now we're logged in with extended permissions, so: facebook.request("me/photos"... end end local function listenerPhase1(event) if (event.type=="session" and event.phase=="login") then -- we're logged in, but with only basic permissions, so on to phase 2 login: facebook.login(appid, listenerPhase2, {"publish\_actions"}) end end -- no permission login phase 1 facebook.login(appid, listenerPhase1)
[Argh!! Half my post was lost, trying again…]
But testing seems to indicate that a single-phase login works, with dev or test accts, with or without native fb android app installed, (more quick psuedocode):
local function listenerPhase1(event) if (event.type=="session" and event.phase=="login") then -- if we did .request("me/permissions" here we'd find publish\_actions granted, so facebook.request("me/photos"... end end facebook.login(appid, listenerPhase1, {"publish\_actions"})
I guess my question boils down to: are there KNOWN conditions under which single-phase login will FAIL to obtain the requested permissions, in today’s world? Not sure how old the “conventional wisdom” is, and/or/if it still applies, and/or under what circumstances.
Thanks!