Cordova / phonegap跟踪应用程序与Facebook SDK安装 [英] Cordova / phonegap tracking APPs install with Facebook SDK

查看:204
本文介绍了Cordova / phonegap跟踪应用程序与Facebook SDK安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

相关问题:如何在Phonegap / Cordova项目中实施Facebook移动安装广告跟踪?



我有一个工作cordova / phonegap应用程序。我想使用插件facebook跟踪APP安装。我安装cordova Facebook连接插件与:

  cordova插件添加https://github.com/phonegap/phonegap-facebook- plugin.git --variable APP_ID =myappid--variable APP_NAME =myappname

已安装并可用作此报告true:

  alert('fb plugin useful:'+ typeof facebookConnectPlugin!='undefined ')

但是我在facebook开发者部分没有看到最近记录的事件为这个程序。我在设置中添加了正确的程序包名称和类名,但不会显示事件。



有什么我缺少或更多的信息,我可以提供?我找不到一个很好的教程,这解释了完整的过程。



APP安装事件是否应该通过添加插件而没有任何JS调用记录在应用程序中?

解决方案

我在插件实现中挖了一下,注意到 activateApp 我克隆了repo并为Android添加了功能[在 FB guide for android ]:



代码所需的修改是:插件中的代码更改和:如何在JS代码中使用。这样我可以调用

  facebookConnectPlugin.activateApp(fb_success,fb_fail); 

其中回调只是虚空函数。



并且FB是SDK跟踪,当有安装时。但我注意到,只有当设备上安装了FB应用程序时才会生成事件[不知道这是否应该是这样的]。



UPDATE
可能我的解决方案是旧的,我想现在的Facebook官方插件已经直接实现的功能,而不需要任何额外的定制在JS文件或触摸Java文件。 p>

Related question: How do I implement Facebook Mobile Install Ad tracking in Phonegap/Cordova project?

I have a working cordova/phonegap application. I would like to track the APP install using the plugin facebook. I installed the cordova facebook connect plugin with:

cordova plugin add https://github.com/phonegap/phonegap-facebook-plugin.git --variable APP_ID="myappid" --variable APP_NAME="myappname"

The plugin is installed and usable as this report 'true':

alert('fb plugin usable: ' + typeof facebookConnectPlugin != 'undefined')

However I am no seeing anything in the "Most recently logged events" in the facebook developer section for this app. I added the correct Package Name and Class Name in the settings but the events are not just showing up.

Is there anything that I am missing or more info that I can provide ? I cannot find a good tutorial on this that explains the full process.

Should the APP install event just be logged by adding the plugin without any JS call in the app?

解决方案

I dug a bit in the plugin implementation and noted the activateApp was not implement at all. I cloned the repo and add the functionality for Android [following the FB guide for android ]:

The modifications required on the code are: code changes in plugin and : how to use in the JS code. In this way I can just call

facebookConnectPlugin.activateApp(fb_success, fb_fail);

where the callbacks are just dummy empty function.

and the FB is SDK tracks when there is an installation. I noticed however that the events are generated only when there is a FB app installed on the device [do not know if this is supposed to be like that].

UPDATE Probably my solution is old, I guess that now the official plugin for Facebook has already the feature implemented directly without the need of any additional customization in the JS files or touching the Java files.

这篇关于Cordova / phonegap跟踪应用程序与Facebook SDK安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆