@Rob Miracle
You’re right on how the login happens. But here’s what’s the problem in both cases:
Case 1. When it uses the webView, you can ask whatever permissions you want to, because it behaves like authentication on a browser. It works even with a wrong hashkey.
Case 2. When using the native Facebook app, since versio 3.0.1 of the Android sdk you can’t ask for reading and writing permissions at the same time. You can do that with the web authentication, and that’s why case 1 works. But with the native sdk Facebook won’t handle the permissions and ask user about each one.
That’s why this code :
local function getPermissions(event) if(event.type == "session") then facebook.logout() facebook.login( fbAppID, fbListener, {"publish\_stream"}) end end facebook.login( fbAppID, getPermissions)
Works in Case 2, and Case 1 (but the user has to enter his login details twice)
And that’s why this code only works in Case 1:
--without asking reading/basic permissions prior facebook.login( fbAppID, fbListener, {"publish\_stream"})
Hope this makes everything clear on what’s happening here.