All of a sudden can't find module Facebook on iOS

Hi, 

I’ve built and run my app for iOS several times before.

The last time I did this successfully was probably 3-4 weeks ago.

Now, I get this when I try to run the app after a successful build:

Apr  8 14:42:19 Daniels-iPad BestCricket1.09[263] <Warning>: Runtime error

    module ‘facebook’ not found:resource (facebook.lu) does not exist in archive

        no field package.preload[‘facebook’]

        no file ‘/var/mobile/Applications/E19156F7-C3B4-4B3A-828E-38B2406DD37B/BestCricket1.09.app/facebook.lua’

        no file ‘/var/mobile/Applications/E19156F7-C3B4-4B3A-828E-38B2406DD37B/BestCricket1.09.app/facebook.lua’

        no file ‘./facebook.so’

        no file '/var/mobile/Applications/E19156F7-C3B4-4B3A-828E-38B2406DD37B/BestCricket1.09.app/facebook.so’facebook

    stack traceback:

        [C]: in function ‘require’

        ?: in function ‘require’

        /Users/MacKirk/Dropbox/Best Cricket 1.09/scripts/facebook.lua:1: in main chunk

        [C]: in function ‘require’

        ?: in function ‘require’

        /Users/MacKirk/Dropbox/Best Cricket 1.09/main.lua:19: in main chunk

I can’t think of any changes I’ve made to Xcode/simulator or anything else in relation to the matter.

Suggesitons most appreciated

thanks

Probably you have not added as plugin yet. Newish requirement: http://docs.coronalabs.com/daily/api/library/facebook/index.html#gotchas

thanks muchly.  I notice this in the ‘gotchya’:

settings = {

plugins =
{
[“facebook”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { iphone=true, [“iphone-sim”]=true },
},
},
}

Is there a reason why only the two are included?  How about other devices like IPads and IPods?  what’s the purpose of the ‘supportedPlatforms’ - wouldn’t you just want it there for every iOS device?

thanks

okay i guess we need the supported platforms so that we don’t get errors with android.  I’d also assume that the supplied doco caters for all iOS devices?

thanks

Probably you have not added as plugin yet. Newish requirement: http://docs.coronalabs.com/daily/api/library/facebook/index.html#gotchas

thanks muchly.  I notice this in the ‘gotchya’:

settings = {

plugins =
{
[“facebook”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { iphone=true, [“iphone-sim”]=true },
},
},
}

Is there a reason why only the two are included?  How about other devices like IPads and IPods?  what’s the purpose of the ‘supportedPlatforms’ - wouldn’t you just want it there for every iOS device?

thanks

okay i guess we need the supported platforms so that we don’t get errors with android.  I’d also assume that the supplied doco caters for all iOS devices?

thanks