Hello. I’m using the code extract below to open a specific page/id/username on Facebook, Instagram, and Twitter - first trying the app with the relevant scheme URL, and then the website if it fails.
It’s ‘kind of’ working on both Android and iOS - but sometimes the social media app doesn’t open even if it’s installed and the user is logged in, and the website opens instead, and often Facebook goes to the user’s own timeline rather than the specific page I want.
First, the apps weren’t opening on one particular iPhone because it’s old and the iOS can’t run TestFlight. So the phone was running my app through Expo, and of course linking to apps doesn’t work in Expo - so I was getting the websites instead.
Second, Facebook has two fb:// URL formats for linking to specific pages - one for iOS and a different one for Android. I was just using the iOS one.
SDK Version: 40 Platforms(Android/iOS/web/all): Android and iOS Hello. I’m using the code extract Getting mixed results trying to open a specific page in social media apps / sites with Linking, WebBrowser · Help: Expo SDK.