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.