Every time I open my app in ios simulator it shows the message “This app has been already authorized” in a safari web view. It is quite annoying to have to make click on Ok every time to go back to the app
I use this code in one composer scene…all is working fine but that. It is the same code than facebook sample
local function enforceFacebookLogin( ) if facebook.isActive then local accessToken = facebook.getCurrentAccessToken() if accessToken == nil then print( "Need to log in" ) facebook.login( facebookListener ) elseif not inTable( accessToken.grantedPermissions, "public\_profile" ) then print( "Logged in, but need permissions" ) printTable( accessToken, "Access Token Data" ) facebook.login( facebookListener, {"public\_profile"} ) else print( "Already logged in with needed permissions" ) printTable( accessToken, "Access Token Data" ) statusMessage.text = "login" end else print( "Please wait for facebook to finish initializing before checking the current access token" ); end end
My facebook app has SSO
(posiblement when facebook aplication is not public…)