I run into problem linking app with facebook sharing. I have the following meta tags for the web page. What I want is when user share the page to facebook, and when the post is clicked. It should trigger an intent which launches the native app.
The weird thing is when I click on the facebook share on mobile chrome/safari, it ignores the app link and goes straight to that web page. Inspecting facebook's html, the a tag is linking to the webpage without any mentioning of the app link.
However, when I use facebook native app on android, it does trigger an intent to launch my app. That said, facebook native app on ios doesn't work the same (goes to the web page).
The app link shows just fine on the facebook open graph inspector. It seems it always uses my og:url (I tried using if statement as below to not render the tag, but it still infers the url somehow).
My question why is facebook web on mobile uses the web url instead of the app link. Is there a way to do this ?
<% if @app_links%>
<meta property="al:ios:url" content="<%= @app_links[:deep_link] %>" />
<meta property="al:ios:app_store_id" content="<%= @app_links[:ios][:app_store_id] %>" />
<meta property="al:ios:app_name" content="<%= @app_links[:app_name] %>" />
<meta property="al:android:url" content="<%= @app_links[:deep_link] %>">
<meta property="al:android:package" content="<%= @app_links[:android][:package] %>">
<meta property="al:android:app_name" content="<%= @creation_og_deep_link[:app_name] %>">
<!--fallback-->
<meta property="al:web:should_fallback" content="false" />
<% else %>
<meta property="og:url" content="<%= page_url %>"/>
<% end %>