I’ve reverted to using graphics compatibility mode for CoronaSDK 2013.2100 - now require(“facebook”) seems to be working fine…
yes off the top of my head it was something to do with facebook now being a plugin on iOS, so you need to add it as a plugin instead of requiring it as a module. If you google terms related to what I just said you should be able to find the exact answer somewhere …
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
thanks
FYI, I was also having problems with the Facebook plug in the latest version of xCode and Enterprise, and I was able to solve the problem with the help of Ingemar:
http://forums.coronalabs.com/topic/42420-compiler-warnings/
Part of the problem was that I needed to add the AdSupport framework, but lots of things I had to change are explained in the thread above.
Okay there seems to be a couple of different conversations going on here. For @editor, this thread was about using Facebook with Corona Enterprise and not with Corona SDK. How you use them is different between the two products. Corona SDK users do not need to worry about linking to libraries.
Now what Corona SDK users need to worry about is a change Apple has made in how they accept apps that made us make some changes. Staring with 2014.2169, facebook is now a plugin for iOS only. It’s still baked into the core for Android. If you plan to deploy to Apple, with a build after version 2168 you must add the facebook plugin to your build.settings.
Rob
Great - thanks Rob
+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?
I’ve reverted to using graphics compatibility mode for CoronaSDK 2013.2100 - now require(“facebook”) seems to be working fine…
yes off the top of my head it was something to do with facebook now being a plugin on iOS, so you need to add it as a plugin instead of requiring it as a module. If you google terms related to what I just said you should be able to find the exact answer somewhere …
FYI, I was also having problems with the Facebook plug in the latest version of xCode and Enterprise, and I was able to solve the problem with the help of Ingemar:
http://forums.coronalabs.com/topic/42420-compiler-warnings/
Part of the problem was that I needed to add the AdSupport framework, but lots of things I had to change are explained in the thread above.
Okay there seems to be a couple of different conversations going on here. For @editor, this thread was about using Facebook with Corona Enterprise and not with Corona SDK. How you use them is different between the two products. Corona SDK users do not need to worry about linking to libraries.
Now what Corona SDK users need to worry about is a change Apple has made in how they accept apps that made us make some changes. Staring with 2014.2169, facebook is now a plugin for iOS only. It’s still baked into the core for Android. If you plan to deploy to Apple, with a build after version 2168 you must add the facebook plugin to your build.settings.
Rob
Great - thanks Rob