android - Titanium Appcelerator - Facebook 移动应用安装广告

标签 android ios facebook titanium facebook-ads-api

我们使用 Titanium Appcelerator 为 Android 和 iOS 构建了我们的应用程序。我们的客户要求利用 Facebook 的“移动应用安装广告”。 http://developers.facebook.com/docs/concepts/mobile-ads/

Titanium 是否有权进行所需的更新以使其正常运行?

For the FB iOS SDK 3.0 or greater, add the following to your UIApplicationDelegate applicationDidBecomeActive selector:

[FBSettings publishInstall:YOUR_APP_ID];

For the FB Android SDK 3.0,add the following to onResume() of each Activity in your app:

com.facebook.Settings.publishInstallAsync(context, YOUR_APP_ID);

最佳答案

最近 iOS 和 android 都升级到了 3.0,但版本 (3.1.0) 只是在夜间构建中,要到四月中旬才会发布。

Heres the JIRA ticket.

不确定您是否想使用夜间构建,但是一旦您使用它构建了一个应用程序,您就可以直接编辑 Titanium 的源代码,或者您可以编辑 Titanium Studio 生成的实际源代码,对于 iOS,只需打开XCode 项目并编辑 TiApp.m 文件,特别是 applicationDidBecomeActive 方法。对于Android,它应该非常相似。

关于android - Titanium Appcelerator - Facebook 移动应用安装广告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15527176/

相关文章:

Facebook 连接,电子邮件地址?

android - 从 Edittext 保存最新文本并在 onDestroy 之后恢复它

android - 改变 RadioButton 的背景覆盖单选按钮 android 上的文本

android - FileOutputStream 什么也不做(Android Studio)

ios - 最佳实践 : how to add an external framework to xcode project which is under version control?

javascript - FB.Event.subscribe 后删除div

Android SQlite密码加密?

ios - 弹出 View Controller 时继续播放 AVPlayer 流

ios - 如果当前 viewController 在 tableView didSelect 中导航,则 XCode swift 3

ios - UIApplication -beginReceivingRemoteControlEvents 导致音乐应用接管音频