Facebook Deep Linking on iOS not starting my app - ios

I'm trying to implement Facebook's Deep Linking feature in order to launch game directly when the user taps a story in the native Facebook app. I've configured and enabled Deep Linking. I've then posted on my timeline using my app, it's a link to my game's site. The link contains a special GUID that enables some social activity in-game. When I click the link on web, my website opens normally. When I tap the story in native app, again, my website opens. However, if I tap the via part of the story in the bottom (such as 3 hours ago via MyApp) then my app launches, but it doesn't work for me as the GUID is not passed that way to the app (and also it would be useless to expect people to tap that part of the story). How can I set it up such that when the user clicks the link in a web browser, they will be taken to my website where there is a link to my app that they can download, but when they tap the same link in native Facebook App (only iOS is concerned), the game will launch and the link will be passed to my game? I don't know why it doesn't take me to the app when I click the link.
Here is a screenshot from my app's dashboard:
The URL scheme suffix is only for if I want to use the same ID for multiple apps, which is not the case.

Related

Google Analytics for Email Tracking when using Universal Links on iOS

I would like to track button clicks in emails using Google Analytics. Let's say I would like the button to have a Universal Link, which when clicked, will open an iOS app directly with no browser redirect. (https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html)
However, if my URL is a Universal Link, i.e. www.xyzxyz.com/openApp?campaign=promo&source=email, and an email recipient clicks the link from their iPhone with the installed app, no call is made to the server, and therefore the click is not tracked.
Has anyone experienced a way of tracking Universal Link clicks?
Universal Links are handled on the frontend by the device without ever interacting with a server if the app is installed. The AASA file is stored on the device at install and allows the device to check whether the link can open the app before passing the link onto safari. If the app is not installed and the link is passed onto Safari then the Google analytics tags will be processed. The only way to accomplish this is to send the GA request from the app if you register that a Universal Link was clicked.
I recommend looking into a deep linking service like Branch. They have a Google analytics data integration that will handle all of this tracking for you.

Firebase dynamic link does not navigate to ios app/ appstore from facebook post in iOS

I have to implement navigation from facebook post to my native iOS app or app store if the app is not installed. For that, I have tried Facebook APP Link feature but it did not work. Then I created Firebase Dynamic link and post it on facebook app directly. After tapping on posted link, it shows one pop up saying "Leave Facebook? This webpage is trying to open an app outside of Facebook. Are you sure you want to open it?"
After tapping on Yes, it does nothing. I have cross verified the created link with https://app_id.app.goo.gl/apple-app-site-association It shows associated bundle id, team id, app store id.
Can anyone please suggest me the proper pathway to implement deep linking with facebook post to the app?
Also, can we test deep linking with the app which is not on the App Store?
Thanks in advance.
Facebook doesn't like users to leave their app. They stopped supporting App Links in their iOS app almost a year ago, and have never supported Universal Links (which is what Firebase Dynamic Links uses).
The only workaround is to send users to a landing page with a CTA button, and put another deep link behind that button (on a different domain than the one on which you're hosting this landing page). It's an extra step for the user, but currently the only option. Branch.io (full disclosure: I'm on the Branch team) does this via the Deepviews feature. Dynamic Links currently doesn't have an equivalent, so you'd need to build something yourself.

How to call action sheet from Facebook iOS app

When I tap on some Sound Cloud content on FB timeline, FB iPhone app shows Action Sheet with these options:
Open Web page
Install Sound Cloud app
How do I call action sheet on Facebook content in a Facebook iOS app? Was that a special feature FB gave Sound Cloud?
You may check Facebook developer documentation :
One of the most interesting aspects of sharing to Facebook from your
app is that when people engage with the news feed stories posted from
your app, those stories can send people to your app or your app's App
Store page, driving traffic and app installs. You can implement this
behavior using App Links.
When you set up App Links, you can control what happens when someone
taps on one of the links shared through your app or on the story
attribution (name of your app) in one of the Open Graph stories shared
through your app. If your app has web content, people will be
redirected to a web view of that content. If your app is installed
there may be an open button that launches your iOS app. if your app
isn't installed, there will be an install option to direct people to
your app's App Store page. If your app is mobile-only (no web content)
then tapping the shared link will either direct people to your app (if
it's installed) or to your app's App Store page (if your app isn't
installed)
App Links on iOS
Sharing on iOS

How to publish link from iOS app to Facebook app with custom URL scheme?

I am creating an iOS app (using Adobe AIR) and I want to put a share button to my game that will allow the player to share a link to my game. I can do it with Graph API using my app's token, but I don't want a story published by my app. I want the native Facebook app to open and bring a share dialog. All my research concluded me to use the custom URL scheme such as fb://publish/?text=my_text but I couldn't get it working. I tried typing exactly that in Safari, it brings the native Facebook app, but no publish dialog or anything. All the sources online tells this, but it is not working. What could I be possibly doing wrong?

How to prevent auto-launching of our iOS app from links in FB iOS app?

We have an iOS app that publishes certain activity to Facebook that contains links to pages on our domain. Our intention is for friends to click on those links and view them as webpages.
However, when you click on links in these published stories in the FB iOS app, it's auto launching our app instead of going to an embedded Web View or kicking out to safari.
Note: We still want to have single sign on (SSO), so just want to change the behavior of clicking links in published stories.
To clarify, this is what I'm talking about:
My app is able to publishes http://foo.com/123 into the FB newsfeed for a particular user that opts in.
That person's friends see the link, but when they click it, it just goes to http://foo.com/123 in the browser instead of launching my FOO app. This is because my app doesn't yet handle incoming context from FB iOS app.
I still want FB SSO to work from my FOO app. That is, when clicking on FB sign in in my FOO app, it jumps out to the FB iOS app (if installed) and does a single sign on and redirects back to my app. IOW, I don't want to break this authentication scenario that currently works.
What setting in the FB developers App Settings controls this? It's not clear from the documentation. I see sections for Native iOS app and Website which I currently have set but it's unclear which sub-setting affects the behavior in question. Also, it's not clear even if I was to find the setting, can I affect it without affecting SSO.
The setting you want in the Facebook App dialog is under the iOS Native section (see the screenshot below) - set both the highlighted sections to Disabled.
This won't affect Facebook login/SSO in the app, so you'll still be able to do the OAuth dances.

Resources