{ "id": "159757", "key": "MOD-2248", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "17723", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-25T10:51:30.000+0000", "created": "2016-04-21T07:13:36.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "facebook", "iOS", "qe-5.4.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-07-11T22:58:24.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14521", "name": "Facebook" } ], "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). ", "attachment": [], "flagged": false, "summary": "Ti.Facebook: Support \"logCustomEvent\" with optional arguments", "creator": { "name": "hy", "key": "hy", "displayName": "hy", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "hy", "key": "hy", "displayName": "hy", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 624, "state": "closed", "name": "2016 Sprint 09 SDK", "startDate": "2016-04-23T00:39:45.452Z", "endDate": "2016-05-07T00:39:00.000Z", "completeDate": "2016-05-09T03:43:10.279Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "383481", "author": { "name": "hy", "key": "hy", "displayName": "hy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: [https://github.com/appcelerator-modules/ti.facebook/pull/50|https://github.com/appcelerator-modules/ti.facebook/pull/50]", "updateAuthor": { "name": "hy", "key": "hy", "displayName": "hy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-21T07:44:08.000+0000", "updated": "2016-04-21T07:44:08.000+0000" }, { "id": "383789", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Demo:\r\n{code:javascript}\r\nvar fb = require(\"facebook\");\r\nvar win = Ti.UI.createWindow({backgroundColor: \"#fff\"});\r\nif (Ti.Platform.osname == \"android\") {\r\n win.fbProxy = fb.createActivityWorker({lifecycleContainer: win1});\r\n}\r\n\r\nvar btn = Ti.UI.createButton({\r\n title : \"Log event\"\r\n});\r\n\r\nbtn.addEventListener(\"click\", function() {\r\n fb.logCustomEvent(\"myEvent\", 13.37, {myKey: \"myValue\"});\r\n});\r\n\r\nwin.add(btn);\r\nwin.open();\r\n{code}\r\n\r\nOutput in the analytics console: http://abload.de/img/bildschirmfoto2016-04edk0b.png", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-25T10:51:06.000+0000", "updated": "2016-04-25T10:51:06.000+0000" }, { "id": "390397", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "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.\r\n\r\n\r\nTested On:\r\niPhone 6S (9.3.2) Device\r\nNexus 6P (6.0.1) Device\r\nFacebook Module (5.2.0) \r\nMac OSX El Capitan 10.11.5 \r\nTi SDK: 5.4.0.v20160705213725\r\nAppc Studio: 4.7.0.201607111053\r\nAppc NPM: 4.2.8-1\t\r\nApp CLI: 5.4.0-29\r\nXcode 7.3\r\nNode v4.4.7\r\n\r\n*Closing ticket.*\r\n", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-07-11T22:58:13.000+0000", "updated": "2016-07-11T22:58:13.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }