简体   繁体   中英

Appcelerator Studio - Facebook Module Track installs

I am currently developing an app using Appcelerator Studio and want to track installs with the Facebook Module: http://docs.appcelerator.com/platform/latest/#!/api/Modules.Facebook

The app does not require Facebook login so I need to track installs without the login function (If i call the .authorize function the install is tracked, but this isn't what I want)

I have tried a couple of ways:

1.  var fb = require('facebook');
    fb.initialize();
    fb.activateApp();

Nothing appears in the Facebook analytics section but no errors are thrown.

2.  var fb = require('facebook');
    fb.initialize();
    fb.logCustomEvent('test');

with iOS I get the error:

[ERROR] : message = "-[__NSCFString objectAtIndex:]: unrecognized selector sent to instance 0x799633e0";

Even though the documentation requires passing the event as a string as I am doing.

Any help would be much appreciated.

Many Thanks, Simon.

I have a fix, but I need someone to explain me how to make a separate pull request for it.

Right now I fixed it in-house and attached it to the end of my other pull request:

https://github.com/appcelerator-modules/ti.facebook/pull/37

It crashes because we use objectAtIndex on the object that we just assured is NSString (congrats)

PR已于上周合并,并将包含在下一次Ti.Facebook更新中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM