Testing my app on an iPod touch 4G, using build 2189. The Facebook login function works perfectly on Android, but does nothing on iOS. Basically the listener is never being called so there is no popup of any kind appearing.
I’ve also tried with the demo Facebook code bundled with Corona, and that has the same issue. Whatever button I click, no listener is called, it just does nothing. Please help!
Here is the code (appID removed for security):
local facebook = require(“facebook”)
local fbAppID = “xxxxxxxxxx” --replace with your Facebook App ID
facebook.login( fbAppID, facebookListener, { “publish_actions, email” } )
local json = require( “json” )
local function facebookListener( event )
print( “event.name”, event.name ) --“fbconnect”
print( “event.type:”, event.type ) --type is either “session”, “request”, or “dialog”
print( "isError: " … tostring( event.isError ) )
print( "didComplete: " … tostring( event.didComplete ) )
end
And my build settings are here:
– ORIENTATION VALUES:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight
settings = {
plugins =
{
[“facebook”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { iphone=true, [“iphone-sim”]=true },
},
},
– iOS SETTINGS:
iphone = {
components = {},
plist = {
CFBundleDisplayName = “My App”,
MinimumOSVersion=“5.1”,
UIStatusBarHidden = false,
UIPrerenderedIcon = true,
UIApplicationExitsOnSuspend = false,
CoronaUseIOS6LandscapeOnlyWorkaround=true,
CoronaUseIOS6IPadPhotoPickerLandscapeOnlyWorkaround=true,
FacebookAppId = “xxxxxxxxx”,
CFBundleURLTypes =
{
{
CFBundleURLSchemes =
{
“fbxxxxxxxxxxxx”
}
}
},
}
},
}