Mac, iOS
[main.lua]
local facebook = require âplugin.facebook.v4â
local facebookAnalytics = require âplugin.facebookAnalyticsâ
facebookAnalytics.init(âMY_FB_APP_IDâ)
[build.settings]
settings =
{
iphone =
{
plist =
{
MinimumOSVersion = â8.0â,
UIApplicationExitsOnSuspend = false,
FacebookAppID = âMY_FB_APP_IDâ,
CFBundleURLTypes =
{
{ CFBundleURLSchemes = { âfbMY_FB_APP_IDâ, } }
},
LSApplicationQueriesSchemes =
{
"fb",
"fbapi",
"fbauth2",
"fb-messenger-api",
"fbshareextension"
},
},
},
android =
{
usesPermissions =
{
âandroid.permission.INTERNETâ
},
facebookAppId = âMY_FB_APP_IDâ,
},
plugins =
{
[âplugin.facebook.v4â] = { publisherId = âcom.coronalabsâ },
[âplugin.facebookAnalyticsâ] =
{
publisherId = âtech.scotthâ,
marketplaceId = âmy acc idâ,
},
},
}
Output
ERROR: Runtime error
/Users/runner/work/corona/corona/platform/resources/init.lua:931: module âplugin_facebookAnalyticsâ not found:
no field package.preload[âplugin_facebookAnalyticsâ]
no file â/Users/hj/Library/Application Support/Corona/Simulator/Plugins/plugin_facebookAnalytics.luaâ
no file â/Users/hj/Desktop/facebookAnalytics-demo-master/plugin_facebookAnalytics.luaâ
no file â/Applications/Corona/Corona Simulator.app/Contents/Resources/plugin_facebookAnalytics.luaâ
no file â/Users/hj/Library/Application Support/Corona/Simulator/Plugins/plugin_facebookAnalytics.dylibâ
no file â./plugin_facebookAnalytics.dylibâ
no file â/Applications/Corona/Corona Simulator.app/Contents/Resources/plugin_facebookAnalytics.dylibâ
stack traceback:
[C]: in function ârequireâ
/Users/runner/work/corona/corona/platform/resources/init.lua:931: in function ârequireâ
/Users/hj/Desktop/facebookAnalytics-demo-master/main.lua:2: in main chunk