如何从Facebook App内置浏览器深度链接应用程序? [英] How to deep link an app from the Facebook App builtin browser?

查看:261
本文介绍了如何从Facebook App内置浏览器深度链接应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个链接,单击该链接时会加载动态网页(在服务器上执行某些操作),然后将用户重定向到已安装的应用程序.到目前为止,在以下应用/浏览器中打开链接可以正常工作:

I have a link that when clicked loads a dynamic webpage (which performs some operations on the server), and then redirect the user to an installed app. So far, opening the link in the following apps/browsers works fine:

  • Android的默认浏览器;
  • Chrome-多个版本
  • Twitter应用

在iOS上也进行了类似的操作,并且效果很好.

Something similar is also being done on iOS, and works fine.

以下无效,无论我如何尝试:

The following does not work, no matter what I try:

  • 在Facebook上共享链接,并使用Android上的Facebook内置浏览器从Facebook App中打开链接(在iOS上运行正常).我收到一条错误消息:无法加载页面".

已完成/尝试的操作:

该应用正确地具有所需的内容过滤器和意图设置,并且将过滤器设置为可以处理自定义协议方案("example://")和HTTP("http","example.com")-一次并且两者都同时.

The app has the needed content filters and intent setup correctly, and the filters were set to handle both a custom protocol scheme ("example://") and HTTP ("http", "example.com") - one at a time and both at the same time.

使用应用链接标记或Open Graph标记(某些FB文献建议)不能解决问题.

Using App Links tags or Open Graph tags (as suggested by some FB literature) did not solve the problem.

使用HTTP重定向,javascript或元刷新标记重定向用户无效.

Redirecting the user with an HTTP redirect, javascript or meta refresh tag does not work.

使用HTML链接并点击它不起作用.

Using an HTML link and taping it does not work.

除了使用Android Facebook App的内置浏览器时,所有这些方法在所有地方均可使用.

All of those methods work everywhere except when using the Android Facebook App's builtin browser.

(已使用多个Android版本2.3、4.4和5.0进行了测试)

(this was tested with several Android versions, 2.3, 4.4 and 5.0)

这种链接有效吗?

谢谢,吉恩

推荐答案

您是否尝试过更改站点的重定向实现?

Have you tried changing your site's redirect implementation?

https://developer.chrome.com/multidevice/android/intents

在Android版Chrome(版本)中,该功能已稍有更改25岁及以后.不再可能通过以下方式启动Android应用设置iframe的src属性.例如,浏览iframe具有自定义方案(例如paulsawesomeapp://)的URI无效即使用户安装了适当的应用程序.相反,您应实施用户手势以通过自定义方案启动应用,或使用本文所述的意图:"语法.

这篇关于如何从Facebook App内置浏览器深度链接应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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