Facebook iOS应用程序不启动我的应用程序启用应用程序的链接 [英] Facebook iOS app not launching my app for Applinks enabled link

查看:234
本文介绍了Facebook iOS应用程序不启动我的应用程序启用应用程序的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在测试网页的头部添加了以下元信息。

I have added the following meta info in the head portion of my test web page.

<html>
<head>
  <meta property="al:ios:url" content="schemeregisteredinapp://hereGoesTheURL" />
  <meta property="al:ios:app_store_id" content="12345" />
  <meta property="al:ios:app_name" content="Applinks Supporting App" />
</head>

<body>
<p>Opening a link to this page in Facebook iOS app should launch my "Applinks Supporting App".
</p>
</body>
</html>

我添加了自定义网址计划 schemeRegisteredInApp 在我的iOS应用程序的info.plist。如果我在iOS Safari浏览器中输入格式 schemeRegisteredInApp:// / rest / of / the / path 的网址,则会成功启动我的应用程序。

I have added the custom url scheme schemeRegisteredInApp in my iOS app's info.plist. If I type a url of the format schemeRegisteredInApp://the/rest/of/the/path in iOS Safari browser, it successful launches my app.

但是如果我在iOS上点击了包含Facebook应用程序或邮箱应用程序中的上述HTML的网页的链接(两者都应该支持应用程序协议),则该页面只会在网页视图中打开在Facebook应用程序里面我的iOS应用程序从未启动。我不知道出了什么问题。应用程序简单地拒绝按照广告的方式工作。这是在iOS 8上。是否有应用程序被破坏?

But if I tap on a link to the webpage containing above mentioned HTML in Facebook app or Mailbox app (both are supposed to support applinks protocol) on iOS, the page just opens in a web view inside the Facebook app. My iOS app is never launched. I can't figure out what is going wrong. Applinks simply refuses to work as advertised. This is on iOS 8. Is Applinks broken?

推荐答案

将以下内容添加到您的网站元数据中,Facebook iOS应用程序将打开您的应用程式直接。

Add the following to your website meta data and the Facebook iOS app will open your app directly.

<meta property="al:web:should_fallback" content="false" />

如果这不行,那么您的元数据仍然有其他问题。最好的调试方法是转到 developers.facebook.com/tools/debug/og/object 和输入您的网址,然后选择显示现有的刮擦信息。如果有任何错误,它将无法正常工作。解决问题并点击抓取新的刮擦信息按钮。然后杀死Facebook iOS应用程序并重新启动它。然后AppLink将按照预期的顺序在FB Feed中按下该项目。

If that doesn't work then you still have other issues with your meta data. Best way to debug is to go to developers.facebook.com/tools/debug/og/object and type in your url and select 'Show existing scrape information'. If there are any errors it won't work. Fix the problems and hit the 'Fetch new scrape information' button. Then kill the Facebook iOS app and relaunch it. Then the AppLink will work as expected next time you press the item in the FB feed.

这篇关于Facebook iOS应用程序不启动我的应用程序启用应用程序的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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