I'm trying to create call-to-action button that will open my app. What I've done:
1 . Added url scheme to my up.
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>myapp</string>
</array>
<key>CFBundleURLName</key>
<string>com.myid.myapp</string>
</dict>
</array>
2 . Added metadata to my website.
<meta property="al:ios:url" content="myapp://open"/>
<meta property="al:ios:app_store_id" content="12345"/>
<meta property="al:ios:app_name" content="My App"/>
3 . Added a link with the deeplink on my site. It works great and launches my app.
<a href="myapp://open">Run the app</a>
4 . Added call-to-action button on my facebook page, filled al the fields with:
- web-site: url to my website;
- ios deeplink: myapp://open;
- app store url: app store url;
But clicking on the call-to-action button always leads to appstore.
https://developers.facebook.com/docs/applinks don't answer some questons:
- How does facebook know that metadata locates on my website? I mean, when facebook searches for metadata, how does it know that it must search on my website?
- If Facebook just opens deeplink, why doesnot it open my app?