I'm looking for a solution that allows me to create a link on my website to handle the following use cases:
1) On desktop, user is linked to URL - eg. https://www.facebook.com/pg/sony
2) If accessing from Android/IOS and the Facebook app is installed, links to this page in the Facebook App.
3) If accessing from Android/IOS and the Facebook app is not installed, links to standard URL in browser (same as option 1)
Is there a solution for this? I've seen some javascript hacks that don't seem reliable eg. How to check if an app is installed from a web-page on an iPhone?
I've started investigating branch.io and firebase dynamic links as an option, as they provide 'failback' links if your app isn't installed. However, at a glance these seem to be geared towards deeplinking into your own app, rather than a public app like facebook
Is there a reliable solution to this problem?
Many thanks