Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2248] Ti.Facebook: Support "logCustomEvent" with optional arguments

GitHub Issuen/a
TypeImprovement
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-04-25T10:51:30.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.4.0
ComponentsFacebook
Labelsandroid, facebook, iOS, qe-5.4.0
Reporterhy
AssigneeHans Knöchel
Created2016-04-21T07:13:36.000+0000
Updated2016-07-11T22:58:24.000+0000

Description

Base on Facebook [iOS](https://developers.facebook.com/docs/app-events/ios#custom) and [Android](https://developers.facebook.com/docs/app-events/android#custom) docs, custom events can be logged with a valueToSum and a set of parameters (up to 25 parameters).

Comments

  1. hy 2016-04-21

    PR: [https://github.com/appcelerator-modules/ti.facebook/pull/50](https://github.com/appcelerator-modules/ti.facebook/pull/50)
  2. Hans Knöchel 2016-04-25

    Demo:
       var fb = require("facebook");
       var win = Ti.UI.createWindow({backgroundColor: "#fff"});
       if (Ti.Platform.osname == "android") {
           win.fbProxy = fb.createActivityWorker({lifecycleContainer: win1});
       }
       
       var btn = Ti.UI.createButton({
         title : "Log event"
       });
       
       btn.addEventListener("click", function() {
           fb.logCustomEvent("myEvent", 13.37, {myKey: "myValue"});
       });
       
       win.add(btn);
       win.open();
       
    Output in the analytics console: http://abload.de/img/bildschirmfoto2016-04edk0b.png
  3. Harry Bryant 2016-07-11

    Verified as fixed. logCustomEvent is now supported. Tested demo code with both iOS & Android platforms and was able to see the appropriate custom event and values in the Analytics Console on the Facebook Developer website. Tested On: iPhone 6S (9.3.2) Device Nexus 6P (6.0.1) Device Facebook Module (5.2.0) Mac OSX El Capitan 10.11.5 Ti SDK: 5.4.0.v20160705213725 Appc Studio: 4.7.0.201607111053 Appc NPM: 4.2.8-1 App CLI: 5.4.0-29 Xcode 7.3 Node v4.4.7 *Closing ticket.*

JSON Source