Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook iOS app not launching my app for Applinks enabled link

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>

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.

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?

like image 872
Anil Avatar asked Oct 20 '14 10:10

Anil


1 Answers

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" />

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.

like image 61
cbartel Avatar answered Sep 30 '22 09:09

cbartel