android - Facebook 应用程序与branch.io 的链接

标签 android branch.io

我在将 Facebook App Links 与branch.io 集成时遇到问题。我尝试使用以下代码在我们的 Android 应用程序中显示应用程序邀请:

if (AppInviteDialog.canShow()) {
    AppInviteContent content = new AppInviteContent.Builder()
        .setApplinkUrl("https://bnc.lt/raise-test-ios")
        .build();
    AppInviteDialog.show(this, content);
}

正如您所看到的应用程序链接 URL,我使用了生成的branch.io 营销 URL,但在运行时得到以下信息:

enter image description here

任何人都知道这里发生了什么,我想我们可以使用我们的分支 URL 作为应用程序链接 URL。

最佳答案

您可以使用 Facebook OG 测试器检查链接末尾的 OG 标签有什么问题。如果一切正常,您将看到所有 AppLink 都出现在抓取结果中。如果没有,它会显示一个错误。在这里试试:https://developers.facebook.com/tools/debug/og/object/

对于该特定链接,您仍然需要指定 OG 标题、描述和内容,然后 Facebook 才能正确解析页面。您可以将其添加到dashboard.branch.io上的分支机构营销链接中。 。或者,当您动态创建分支链接时,只需确保使用 $og_title、$og_description 和 $og_image_url。

一旦您从那里集成它,您就可以开始从 AppInvites 中看到安装/打开计数的增加。我们刚刚编写了一份关于如何使用 Branch 实现此功能的完整指南,以防有帮助: https://dev.branch.io/recipes/facebook_appinvites/ios

希望这有帮助!

关于android - Facebook 应用程序与branch.io 的链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30671518/

相关文章:

java - Android Hashmap 无法显示在 listView 中

ios - 在 iOS 上的 branch.io 上的两个应用程序中支持相同的自定义域

Branch.io - Android 应用程序链接 DAL json 文件在 SHA256 更改时未更新

android - 将 branch.io sdk 与 android 应用程序集成,获取 classcastexception

java - 隐藏按钮返回、主页、Android 应用程序

php - 查询mysql数据库时PDO查询没有返回结果

android - 如何通过 GPRS 或 3G 连接两个 Android 设备?

android - 如何在cardview和onclicklistener中设置预加载视频图片?

android - 带有 android :autoVerify ="true" - never verified at installation, 默认应用程序链接的 Intent 过滤器不起作用

ios - 如何在开发版本中测试使用Branch.io创建的分支链接的“应用程序内打开”功能?