Corona can't find the facebook plugin!

Hello,

When I try to run my app on mac I get this error:

Module ‘facebook’ not found:

no field package.preload[‘facebook’]

no file ‘/Users/me/Library/Application Support/Corona/Simulator/Plugins/facebook.lua’

no file ‘/Users/me/dev/bb/facebook.lua’

no file ‘/Applications/CoronaSDK-2871/Corona Simulator.app/Contents/Resources/facebook.lua’

no file ‘/Users/me/Library/Application Support/Corona/Simulator/Plugins/facebook.dylib’

no file ‘./facebook.dylib’

no file ‘/Applications/CoronaSDK-2871/Corona Simulator.app/Contents/Resources/facebook.dylib’

Here’s my build.settings

settings = { orientation = { default = "landscapeRight", supported = { "landscapeRight"} }, plugins = { ["facebook"] = { publisherId = "com.coronalabs" } } } 

If i remove facebook = require('facebook') it works fine.  Of course - then I can’t use facebook.  Does anybody have any idea what might be going wrong with this?

The folder it referenced contained

catalog.json

CoronaProvider_native_popup_social.lua

plugin_fuse.lua

But no facebook.lua

If you open up Terminal and do a:

cd ~/Library/Application Support/Corona/Simulator/Plugins

then do:

ls

you should get a list of files. In there you should see a plugin_facebook.lua file that basically stubs out the plugin since it doesn’t work in the Simulator anyway.

For iOS you need to be using the Facebook V4 plugin anyway:  https://docs.coronalabs.com/plugin/facebook-v4/index.html

Rob

Hi Rob,

I’m just trying to get this to work on android, actually.  It was working in the past, but for some reason now it won’t load.  When I build for android and run, it says “Runtime Error”

/Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lu:820: module ‘facebook’ not found:resource (facebook.lu) does not exist in archive

Browsing the forums I have seen that enterprise users have had this issue, but I’m not on enterprise.  Any clue why this might be happening?

Can you post your build.settings?

If you open up Terminal and do a:

cd ~/Library/Application Support/Corona/Simulator/Plugins

then do:

ls

you should get a list of files. In there you should see a plugin_facebook.lua file that basically stubs out the plugin since it doesn’t work in the Simulator anyway.

For iOS you need to be using the Facebook V4 plugin anyway:  https://docs.coronalabs.com/plugin/facebook-v4/index.html

Rob

Hi Rob,

I’m just trying to get this to work on android, actually.  It was working in the past, but for some reason now it won’t load.  When I build for android and run, it says “Runtime Error”

/Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lu:820: module ‘facebook’ not found:resource (facebook.lu) does not exist in archive

Browsing the forums I have seen that enterprise users have had this issue, but I’m not on enterprise.  Any clue why this might be happening?

Can you post your build.settings?