Facebook Analytics Plugin

This plugin allows you to log events though facebook analytics for iOS(8+) and Android(4.0 +)

Facebook plugin:

Make sure you require the facebook plugin before facebook analytics like so

Functions:

facebookAnalytics.init()

-- initialize facebook analytics

facebookAnalytics.debug()

--call function to enable debug mode

facebookAnalytics.logPurchase(cost, currency)

-- cost(number)(required) the price of the item purchased

-- currency(string)(required) the currency used to make purchase

facebookAnalytics.logEvent(eventName, valueToSum, params)

-- eventName(string)(required) the name of the event you would like to trigger

-- valueToSum(number)(optional) used for send values for thing like price of item viewed

-- params(number)(optional) other params of eventhere(App Event Schema)

facebookAnalytics.limitEventUsage()

used to limit tracking

How to setup:

Make sure you go to https://developers.facebook.com and setup and account and app (for iOS and/or Android) before using this plugin

The build.setting mirrors that of corona sdks facebook plugin, please check out there guide for iOS and Android

Helpful Links:

Get Plugin

Example

Support