Example - iphone retina (3.5), iOS 7.0.3. Loaded facebook app
console
Feb 25 19:35:42 Gregs-MacBook-Air.local Facebook[14167] \<Notice\>: BUG in libdispatch: 13B42 - 866 - 0x2 Feb 25 19:35:42 Gregs-MacBook-Air.local Facebook[14167] \<Notice\>: BUG in libdispatch client: kevent[EVFILT\_VNODE] add: "Bad file descriptor" - 0x9 Feb 25 19:35:42 Gregs-MacBook-Air.local Facebook[14167] \<Warning\>: Platform: iPhone Simulator / x86\_64 / 7.0.3 / Apple Software Renderer / OpenGL ES 2.0 APPLE-9.2.1 Feb 25 19:35:42 Gregs-MacBook-Air.local lsd[14137] \<Warning\>: LaunchServices:(called by PID 14167) Identifiers file does not exist. Feb 25 19:35:42 Gregs-MacBook-Air.local lsd[14137] \<Warning\>: LaunchServices:(called by PID 14167) Creating new identifiers file. Feb 25 19:35:42 Gregs-MacBook-Air.local Facebook[14167] \<Warning\>: Runtime error module 'facebook' not found:resource (facebook.lu) does not exist in archive no field package.preload['facebook'] no file '/Users/greg/Library/Application Support/iPhone Simulator/7.0.3/Applications/B6EE78B9-F84A-40D2-8D0D-0004C36357EB/Facebook.app/facebook.lua' no file '/Users/greg/Library/Application Support/iPhone Simulator/7.0.3/Applications/B6EE78B9-F84A-40D2-8D0D-0004C36357EB/Facebook.app/facebook.lua' no file './facebook.so' no file '/Users/greg/Library/Application Support/iPhone Simulator/7.0.3/Applications/B6EE78B9-F84A-40D2-8D0D-0004C36357EB/Facebook.app/facebook.so'facebook stack traceback: [C]: in function 'require' ?: in function 'require' ?: in main chunk
Do I need to do anything beyond including it in the build.settings?
The sample apps build.settings:
plugins = { -- key is the name passed to Lua's 'require()' This section is only required for builds \> 2014.2165 ["facebook"] = { -- required publisherId = "com.coronalabs", supportedPlatforms = { iphone = true }, }, },
The social plugin is a different beast than the facebook library. They are different plugins. If you’re not using Facebook through the social plugin, then you only need the facebook one. If you are not calling facebook.login() in your code but are only using native.showPopUp() then you need the social version, not the facebook only version.
I just downloaded the latest daily build (2187) and used the sample facebook app. I edited the build.settings and inserted my faceookAppID. I then modified mail.lua and added my appID and apiKey.
The build.settings are exactly the same as the sample app provided with the SDK, except for the proper appID
Are you using Corona daily build #2165 or later? If so, you need to include Facebook as a plugin. We had to do this because of a recent change in Apple’s approval policies.
Just include this in your “build.settings” file and Facebook should work as normal:
@kirumbik, try to cut-n-paste the plugins table on the top of the settings table in build.settings file, before iphone or Android settings - I know it sounds strange, but I had a similar problem and this move made a trick
You should really update the facebook documentation with this change. I was clueless until I found this post about the “iphone-sim” in the plugin block. The official docs do not say this.