Trouble loading Facebook module

I updated to the latest build (1036), and I’m getting this error when I try and run the app through xcode (works on sim)

Lua Runtime Error: lua\_pcall failed with status: 2, error message is: module 'facebook' not found:resource (facebook.lu) does not exist in archive  

The error is being caused by this line in my main.lua (which I have been using forever)

facebook = require("facebook")  

Anyone else seeing this? Any ideas? [import]uid: 95944 topic_id: 36376 reply_id: 336376[/import]

Jesse - what was the previous build you were using? I know we (somewhat) recently moved things around so that FB was a now plugin. If you had been working on an old build that might be the issue… [import]uid: 10668 topic_id: 36376 reply_id: 144475[/import]

I am also having this problem. I went from 2013.1008 to CoronaSDK 2013.1036 and I am now getting this issue:

2013-03-01 13:53:48.173 App[7638:907] Lua Runtime Error: lua\_pcall failed with status: 2, error message is: module 'facebook' not found:resource (facebook.lu) does not exist in archive no field package.preload['facebook'] no file '/var/mobile/Applications/--/App.app/facebook.lua' no file '/var/mobile/Applications/--/App.app/facebook.lua' no file './facebook.so' no file '/var/mobile/Applications/--/App.app/facebook.so'facebook
[import]uid: 183000 topic_id: 36376 reply_id: 144719[/import]

You must add “/Applications/CoronaEnterpise/Plugins/facebook/ios/libfacebook.a” into “Link Binary With Libraries”. [import]uid: 186681 topic_id: 36376 reply_id: 144950[/import]

Jesse - what was the previous build you were using? I know we (somewhat) recently moved things around so that FB was a now plugin. If you had been working on an old build that might be the issue… [import]uid: 10668 topic_id: 36376 reply_id: 144475[/import]

I am also having this problem. I went from 2013.1008 to CoronaSDK 2013.1036 and I am now getting this issue:

2013-03-01 13:53:48.173 App[7638:907] Lua Runtime Error: lua\_pcall failed with status: 2, error message is: module 'facebook' not found:resource (facebook.lu) does not exist in archive no field package.preload['facebook'] no file '/var/mobile/Applications/--/App.app/facebook.lua' no file '/var/mobile/Applications/--/App.app/facebook.lua' no file './facebook.so' no file '/var/mobile/Applications/--/App.app/facebook.so'facebook
[import]uid: 183000 topic_id: 36376 reply_id: 144719[/import]

You must add “/Applications/CoronaEnterpise/Plugins/facebook/ios/libfacebook.a” into “Link Binary With Libraries”. [import]uid: 186681 topic_id: 36376 reply_id: 144950[/import]

Jesse - what was the previous build you were using? I know we (somewhat) recently moved things around so that FB was a now plugin. If you had been working on an old build that might be the issue… [import]uid: 10668 topic_id: 36376 reply_id: 144475[/import]

I am also having this problem. I went from 2013.1008 to CoronaSDK 2013.1036 and I am now getting this issue:

2013-03-01 13:53:48.173 App[7638:907] Lua Runtime Error: lua\_pcall failed with status: 2, error message is: module 'facebook' not found:resource (facebook.lu) does not exist in archive no field package.preload['facebook'] no file '/var/mobile/Applications/--/App.app/facebook.lua' no file '/var/mobile/Applications/--/App.app/facebook.lua' no file './facebook.so' no file '/var/mobile/Applications/--/App.app/facebook.so'facebook
[import]uid: 183000 topic_id: 36376 reply_id: 144719[/import]

You must add “/Applications/CoronaEnterpise/Plugins/facebook/ios/libfacebook.a” into “Link Binary With Libraries”. [import]uid: 186681 topic_id: 36376 reply_id: 144950[/import]

Jesse - what was the previous build you were using? I know we (somewhat) recently moved things around so that FB was a now plugin. If you had been working on an old build that might be the issue… [import]uid: 10668 topic_id: 36376 reply_id: 144475[/import]

I am also having this problem. I went from 2013.1008 to CoronaSDK 2013.1036 and I am now getting this issue:

2013-03-01 13:53:48.173 App[7638:907] Lua Runtime Error: lua\_pcall failed with status: 2, error message is: module 'facebook' not found:resource (facebook.lu) does not exist in archive no field package.preload['facebook'] no file '/var/mobile/Applications/--/App.app/facebook.lua' no file '/var/mobile/Applications/--/App.app/facebook.lua' no file './facebook.so' no file '/var/mobile/Applications/--/App.app/facebook.so'facebook
[import]uid: 183000 topic_id: 36376 reply_id: 144719[/import]

You must add “/Applications/CoronaEnterpise/Plugins/facebook/ios/libfacebook.a” into “Link Binary With Libraries”. [import]uid: 186681 topic_id: 36376 reply_id: 144950[/import]

I don’t have linking errors, but facebook does not work at all for iOS.

It throws no errors but the “share to facebook” stays depressed so I know something is wrong. Also, no facebook dialog appears.

Does anyone know what’s going on?

I don’t have linking errors, but facebook does not work at all for iOS.

It throws no errors but the “share to facebook” stays depressed so I know something is wrong. Also, no facebook dialog appears.

Does anyone know what’s going on?

Thanks david.williams, that solved it for me.

Thanks david.williams, that solved it for me.

Can someone please give some more details on how to do this?  I’ve just spent an hour looking for it in google and can’t work it out.  It’s one of those days.

I’ve just realised that these posts were back in 2013.

I successfully built my game with facebook integration just a couple of weeks ago.  Is there something that could have changed in the meantime for me to get this error now?  Why would I have to “Link Binary With Libraries” now if I didn’t need to before?  And how the fire truck do you Link Binary With Libraries :slight_smile:

thanks

+1 … I’m getting this problem too (using Corona build CoronaSDK 2014.2189) - I don’t have the problem with build CoronaSDK 2013.1137 (before Graphics 2.0).  @editor, did you ever solve the problem?