Dear Rob,
Thanks for making time to sort out these issues. My facebook login worked previously (~2 months ago during my initial test), but now, it doesn’t. I am testing it back on the sample app, ‘facebook’. It works on an Android device (with a Facebook app installed), but not on Xcode Simulator (iOS 6.1).
What I have done. I setup my facebook based on “http://docs.coronalabs.com/guide/social/setupFacebook/index.html#iosbuild”. I inserted the “Bundle ID” (e.g. com.myWeb.app), the “iPhone App Store ID” at " 409807569" . “Facebook Login” and “Deep Linking” are enabled.
My problem is that, everytime I try to facebook-login, safari appears for a few seconds , then it goes back to the app with a failed-login. If i select “Show Dialog”, a native window appears and ask for Facebook-login credentials. If I enter facebook in there, i am able to post something to my facebook-wall. Login on “Show Dialog” will not have any effect on the corona API Facebook-login (meaning if I am able to login on “Show Dialog”, I am still not logged in on the corona facebook-API).
The error shown is as below (taken from console) :
9/29/13 8:15:44.925 PM Facebook4[7752]: Facebook (original) Listener events: 9/29/13 8:15:44.925 PM Facebook4[7752]: type(session) 9/29/13 8:15:44.926 PM Facebook4[7752]: name(fbconnect) 9/29/13 8:15:44.926 PM Facebook4[7752]: phase(loginFailed) 9/29/13 8:15:44.926 PM Facebook4[7752]: isError(true) 9/29/13 8:15:44.927 PM Facebook4[7752]: response(The operation couldn’t be completed. (com.facebook.sdk error 2.)) 9/29/13 8:15:44.927 PM Facebook4[7752]: event.name fbconnect 9/29/13 8:15:44.927 PM Facebook4[7752]: event.type: session 9/29/13 8:15:44.928 PM Facebook4[7752]: isError: true 9/29/13 8:15:44.928 PM Facebook4[7752]: didComplete: nil 9/29/13 8:15:44.928 PM Facebook4[7752]: Session Status: loginFailed
build-settings (last 2-digits is masked with xx) :
settings = { orientation = { default = "portrait", supported = { "portrait" } }, android = { usesPermissions = { "android.permission.INTERNET", }, }, iphone = { plist = { CFBundleIconFile = "Icon.png", CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-72.png", "Icon-72@2x.png", }, UIApplicationExitsOnSuspend = false, -- must be false for single sign-on to work FacebookAppID = "3455772522396xx", -- replace XXXXXXXXX with your facebook appId CFBundleURLTypes = { { CFBundleURLSchemes = { "fb3455772522396xx", -- replace XXXXXXXXX with your facebook appId } } } } } }