You can continue to use the older facebook plugin.
Rob
You can continue to use the older facebook plugin.
Rob
i still can nott use the old facebook plugin with corona sdk build number 2910,
here is the error
Module ‘facebook’ not found:
no field package.preload[‘facebook’]
no file ‘/Users/chandra/Library/Application Support/Corona/Simulator/Plugins/facebook.lua’
no file ‘/Users/chandra/Documents/svnx/_12.BaliFied/code/release/1.5/code/Corona/facebook.lua’
no file ‘/Applications/CoronaSDK-2910/Corona Simulator.app/Contents/Resources/facebook.lua’
no file ‘/Users/chandra/Library/Application Support/Corona/Simulator/Plugins/facebook.dylib’
no file ‘./facebook.dylib’
no file ‘/Applications/CoronaSDK-2910/Corona Simulator.app/Contents/Resources/facebook.dylib’
File: module ‘facebook’ not found
also when i go to https://store.coronalabs.com/plugins?field_primary_category_tid=9&sort_by=title&sort_order=ASC&items_per_page=12
and look up for facebook plugin and i saw the button is “pre-activated” and i can’t activate it
thank you
Can you post your build.settings?
– Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight
settings = {
excludeFiles =
{
--all = { “*secret.txt”, “artwork/*” },
iphone = { “Icon-*dpi.png” },
android = { “Icon.png”, “512x512.png”, “1024x1024.png” }
},
orientation =
{
default = “portrait”, – Initial launch orientation
content = “portrait”, – Locked orientation of the Corona stage, independent of Native UI elements (iOS only)
supported = {“portrait” }, – Table of allowed options for auto-orientation
},
plugins =
{
[“CoronaProvider.native.popup.social”] =
{
publisherId = “com.coronalabs”
},
[“plugin.photon”] =
{
publisherId = “com.exitgames”,
},
[“plugin.openssl”] =
{
publisherId = “com.coronalabs”,
– supportedPlatforms = { android = true, iphone = true, [“mac-sim”] = true, [“win32-sim”] = true },
},
– [“plugin.notifications”] =
– {
– publisherId = “com.coronalabs”
– },
[“facebook”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { iphone=true, android=true },
},
[“CoronaProvider.gameNetwork.apple”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { iphone=true }
},
[“CoronaProvider.gameNetwork.google”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { android=true },
},
[“plugin.google.iap.v3”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { android=true }
},
--[“plugin.zip”] =
--{
– publisherId = “com.coronalabs”
--},
[“plugin.gameanalytics”] =
{
publisherId = “com.gameanalytics”,
},
[“plugin.advertisingId”] =
{
publisherId = “com.coronalabs”
},
[“plugin.OneSignal”] =
{
publisherId = “com.onesignal”,
},
[“plugin.google.play.services”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { android=true, [“android-kindle”]=true },
},
[“plugin.chartboost”] =
{
publisherId = “com.swipeware”
},
},
iphone = {
plist = {
--UILaunchStoryboardName = “LaunchScreen”,
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-60.png”,
“Icon-60@2x.png”,
“Icon-60@3x.png”,
“Icon-72.png”,
“Icon-72@2x.png”,
“Icon-76.png”,
“Icon-76@2x.png”,
“Icon-167.png”,
“Icon-Small-40.png”,
“Icon-Small-40@2x.png”,
“Icon-Small-40@3x.png”,
“Icon-Small-50.png”,
“Icon-Small-50@2x.png”,
“Icon-Small.png”,
“Icon-Small@2x.png”,
“Icon-Small@3x.png”
},
– CoronaWindowMovesWhenKeyboardAppears = true,
UIBackgroundModes = {“remote-notification”},
UIApplicationExitsOnSuspend = false,
UIStatusBarHidden = true,
UIPrerenderedIcon = true,
UIAppFonts =
{
“calibri.ttf”,
“calibrib.ttf”,
“calibrii.ttf”,
“calibriz.ttf”
},
FacebookAppID = “XXXXXXXXXX”,
CFBundleURLTypes =
{
{
CFBundleURLSchemes =
{
“fbXXXXXXXXXX”,
}
}
},
--CFBundleIdentifier = “com.dragongamestudio.dragonslots”,
CFBundleIdentifier = “com.XXXXXXXXXX.XXXXXXXXXX”,
[“URL types”] =
{
item =
{
[“URL Schemes”] = { [“Item 0”] = “fbXXXXXXXXXX” },
},
},
plist =
{
CoronaDelegates = { “CoronaNotificationsDelegate”}
},
– Whitelist Facebook Servers for Network Requests
NSAppTransportSecurity =
{
NSExceptionDomains =
{
[“fbcdn.net”] =
{
NSIncludesSubdomains = true,
NSExceptionRequiresForwardSecrecy = false,
},
[“facebook.com”] =
{
NSIncludesSubdomains = true,
NSExceptionRequiresForwardSecrecy = false,
},
[“akamaihd.net”] =
{
NSIncludesSubdomains = true,
NSExceptionRequiresForwardSecrecy = false,
},
[“api.gameanalytics.com”]={
NSIncludesSubdomains = true,
NSThirdPartyExceptionAllowsInsecureHTTPLoads = true
},
},
},
– Whitelist Facebook Apps
LSApplicationQueriesSchemes =
{
“fb”,
“fbapi20130214”,
“fbapi20130410”,
“fbapi20140410”,
“fbapi20140116”,
“fbapi20150313”,
“fbapi20150629”,
“fbauth”,
“fbauth2”,
“fb-messenger-api20140430”,
},
},
},
android =
{
– coronaWindowMovesWhenKeyboardAppears = true,
googlePlayGamesAppId = “XXXXXXXXXX”,
facebookAppId = “XXXXXXXXXX”, – Replace XXXXXXXXXX with your Facebook App ID
CFBundleDisplayName = “XXXXXXXXXX”,
CFBundleName = “com.XXXXXXXXXX.XXXXXXXXXX”,
UIApplicationExitsOnSuspend = false,
UIPrerenderedIcon = true,
UIStatusBarHidden = true,
permissions =
{
{ name = “.permission.C2D_MESSAGE”, protectionLevel = “signature” },
},
--usesExpansionFile = true,
usesPermissions =
{
“com.android.vending.BILLING”,
“android.permission.INTERNET”,
“android.permission.READ_PHONE_STATE”,
“android.permission.VIBRATE”,
“android.permission.ACCESS_NETWORK_STATE”,
“android.permission.GET_ACCOUNTS”,
“android.permission.RECEIVE_BOOT_COMPLETED”,
“com.google.android.c2dm.permission.RECEIVE”,
“.permission.C2D_MESSAGE”,
“com.android.vending.CHECK_LICENSE”,
“android.permission.WRITE_EXTERNAL_STORAGE”
},
androidPermissions =
{
“com.android.vending.BILLING”,
“android.permission.INTERNET”,
“android.permission.READ_PHONE_STATE”,
“android.permission.VIBRATE”,
“android.permission.ACCESS_NETWORK_STATE”,
“android.permission.GET_ACCOUNTS”,
“android.permission.RECEIVE_BOOT_COMPLETED”,
“com.google.android.c2dm.permission.RECEIVE”,
“.permission.C2D_MESSAGE”,
“com.android.vending.CHECK_LICENSE”,
“android.permission.WRITE_EXTERNAL_STORAGE”
},
},
}
Can you humor me and comment out the supportedPlatforms line for the facebook plugin?
i have try that, like this you mean
[“facebook”] =
{
publisherId = “com.coronalabs”,
– supportedPlatforms = { iphone=true, android=true },
},
but it still give me error message like above
Module ‘facebook’ not found:
no field package.preload[‘facebook’]
no file ‘/Users/chandra/Library/Application Support/Corona/Simulator/Plugins/facebook.lua’
no file ‘/Users/chandra/Documents/svnx/_12myproject/code/release/1.5/code/Corona/facebook.lua’
no file ‘/Applications/CoronaSDK-2910/Corona Simulator.app/Contents/Resources/facebook.lua’
no file ‘/Users/chandra/Library/Application Support/Corona/Simulator/Plugins/facebook.dylib’
no file ‘./facebook.dylib’
no file ‘/Applications/CoronaSDK-2910/Corona Simulator.app/Contents/Resources/facebook.dylib’
File: module ‘facebook’ not found
Hi DragonGameStudio,
From what you’ve posted, it looks like you’re only having this issue with the Corona Simulator. Have you tried building for device?
From the Facebook legacy plugin documentation:
Starting with daily build 2015.2747, we’ve removed the Corona Simulator plugin stub for this plugin from Corona SDK. This is to encourage upgrading to the Facebook-v4 plugin.
If you do a device build of your project, it should still build successfully with the latest daily build.
If you need this Facebook plugin stub for testing in the Corona Simulator, please revert to any daily build prior to 2015.2747.