Facebook Module

Yes, is activated!

Hmm… Try going to the /Users/my_mac_user/Library/Application Support/Corona/Simulator/Plugins directory on your machine, delete anything in there with facebook_v4 in the name. Then quit the Corona Simulator, reopen it, and reopen your Facebook-v4 project. That should re-download the simulator stub for the facebook-v4 plugin.

There are not files with “facebook_v4” in the name.

And you’ve changed all your require statements from require(“facebook”) to require(“plugin.facebook.v4”) Note the “.” and NOT "_"

Yes!

I’ve temporarily fixed not including facebook library when use Simulator. While creating build for Android works fine!

At the end:

after build 2731 I cannot require no facebook plugin in to Simulator: the old and the new (v4), in both cases the (RunTimer) error is the same: module not find!

In my plugin page Facebook is Pre-Activated and Facebook-v4 is Activated.

I’ve just installated the 2015.2755 Build, and there’is always the error. I’ve temporarily fixed not including facebook library when use Simulator…

Do you get the error when you launch the app in your simulator or when you try to build?

Can you try and run our sample app in SampleCode/Networking/Facebook and see if you have the same error?

Rob

Hi Simone Valenti,

I was able to reproduce your issue and figured out the issue.

In your build.settings, you include the Facebook-v4 plugin as such:

["plugin.facebok.v4"] = { publisherId="com.coronalabs" , supportedPlatforms={iphone=true, android=true, osx=false, win32=false}, },

The issue comes from your supportedPlatforms table. By marking osx=false and win32=false, the simulator for those platforms won’t download the plugin stub for Facebook-v4, generating the error you reported.

If you remove those from your supportedPlatforms table, and relaunch your project, the Corona Simulator should download the plugin stubs. You can add them back in after the plugin stub downloads later if you like.

Note that this issue affects any simulator plugin stubs you haven’t downloaded locally, not just the Facebook-v4 plugin.

@Rob Miracle the sample works, and the problem (wrong configuration) is just build.settings. Removing the supportedPlatforms line or set TRUE to osx, there is not the RuntimError.

Thank you!

I think facebook is a pre-activated plugin, but you might confirm it is activated on your store page:

https://store.coronalabs.com/plugins?field_primary_category_tid=All&sort_by=title&sort_order=ASC&items_per_page=All

This is probably not it, but I’d check just in case.

I’m actually having that same issue. I reverted back to 2731 to continue building.

It’s Pre-Activated

Hi,

also the last version of Build (2750) crashes with same error:

Runtime error
module ‘facebook’ not found:
no field package.preload[‘facebook’]

 

What happens? I just change some configurations?

 

Thank you

I’m having the same problem as well :frowning:

I’ll check with Engineering. Please use 2731 for now.

Rob

Also are you using the older Facebook plugin or the Facebook V4 plugin?

I’m apparently using the older one. I didn’t realize there was a V4 version until I saw it a few days ago.

When you browse the SDK you are brought to the “old” one, so this is perhaps a bit misleading with the documentation: https://docs.coronalabs.com/daily/api/library/facebook/index.html

The older Facebook plugin

Please move to the V4 plugin.

iOS: https://coronalabs.com/blog/2015/09/01/facebook-v4-plugin-ios-beta-improvements-and-new-features/

Android: https://coronalabs.com/blog/2015/07/24/facebook-v4-plugin-android-beta/

The old plugin will still work on the device, but the stub plugin we use for the simulators was removed in build 2747. While we still have the “beta” label on the plugin, it’s still stable to use for any use you were using the older plugin for.

Rob

I migrate to new plugin and activated Facebook v4 plugin but there is a runtime error:

module ‘plugin_facebook_v4’ not found:
no field package.preload[‘plugin_facebook_v4’]
no file ‘/Users/my_mac_user/Library/Application Support/Corona/Simulator/Plugins/plugin_facebook_v4.lua’
no file ‘/Users/my_mac_user/Project/corona/StevePunk/plugin_facebook_v4.lua’
no file ‘/Applications/CoronaSDK-2751/Corona Simulator.app/Contents/Resources/plugin_facebook_v4.lua’
no file ‘/Users/my_mac_user/Library/Application Support/Corona/Simulator/Plugins/plugin_facebook_v4.dylib’
no file ‘./plugin_facebook_v4.dylib’
no file ‘/Applications/CoronaSDK-2751/Corona Simulator.app/Contents/Resources/plugin_facebook_v4.dylib’

 

It seems miss plugin file? How to get this file? I try to dehautorized and re-authorized my profile and download the last build, but does not works.

 

Pleas help me

 

Simone