Open iOS FB app with URL Schema - ios

I am investigating ways to open the FB app using a URL Schema. I want to open my app directly to the Search Page and automatically fill the search bar. I am not seeing the search page covered in the URL Schemas:
URL Scheme to open a post in facebook app
Currently, my app is able to go to the search page by creating a custom hyperlink through code and launching Safari. However, most people are not logged into FB through Safari so this causes me issues.
Any thoughts?

Related

Firebase Dynamic Link Page Not Opening In App (iOS)

I am implementing passwordless sign in with Firebase using dynamic links. When a user clicks on the sign in link in their email, the default behavior is to open the link in the app. However, if a user long presses on the link, they have the option to open the link in Safari.
This is the page in Safari. When the 'Open' button is clicked to open the link in the app, the website is opened instead of the app. This makes no sense considering the default behavior opens the link in the app. Any thoughts on what the problem could be?
Here is the dynamic link format (With the API key removed, so it does not work):
https://campuscosmo.page.link/?link=https://hippocampus-b50aa.firebaseapp.com/__/auth/action?apiKey%XXXXXXXXXXXXXXXXXXXXXcontinueUrl%3Dhttps://campuscosmo.com/openOnMobile.html%26lang%3Den&ibi=com.Stakeup.hippocampus.HippoCampus&ifl=https://hippocampus-b50aa.firebaseapp.com/__/auth/action?apiKey%XXXXXXXXXXXXXXXXXXXXX%26mode%3DsignIn%26oobCode%3DSS_k-J6W2i4OMXjcYqr-dyh7LEufGpFMTJejP9De9FIAAAF2lYCqkQ%26continueUrl%3Dhttps://campuscosmo.com/openOnMobile.html%26lang%3Den

iOS app using OAuth2 with Google and Safari presents open page dialog

I have finally got my iPhone app to authenticate and return back to my app with the authorisation code. The main problem was that the reverse client id did not get picked up by my app. I had to add an url scheme of my bundle id instead of the reverse client id.
Anywho, the problem is post authenticating in Safari I am presented with a open 'app name' page dialog. If the user clicks open it works fine. If they leave it for just a few seconds it redirects them to the Google homepage and they have to start all over again. If they are using two factor authentication by any other method than phone call I think it fails too.
How can I avoid this open page dialog?
The solution I found was to use the official Google library for iOS. This does not involve Safari like the AeroGear library I was using does.

How to create the deeplink for my iOS app for use in Facebook?

I would like to link to my iOS app from the Facebook main button of my business page.
However this seems very tricky.
This is from the documentation of Facebook:
https://developers.facebook.com/docs/applinks/ios
The example is in Objective-C. Does anyone have some guidance how to do that in Swift?
Assuming you have a URL scheme configured in your app, this actually doesn't require any additional code work to implement. Here would be the steps:
Go to your app page on Facebook and edit the button.
Under the iOS Settings section, open the dropdown menu and select App
In the next section, enter a URI using your app's custom URI scheme and a fallback website URL to use if your app is not installed (perhaps a page on your website, or a link directly to the iTunes store page)
Note: using the custom URI scheme only works acceptably in this case because Facebook is providing fallback functionality for another destination when the app is not installed. In any other place, if you opened your app's URI scheme without it being installed, you would instead get an ugly 'address could not be found' error. Obviously this is bad for user experience, so if you want to do conditional linking like this anywhere else, you can use a tool like Branch.io (full disclosure: I'm on the team) to handle it.

Use URL scheme to open react-native App

I am working on a react-native app that uses the Spotify api.
Long story short, I had to use the LiknkingIOS Library to open the auth page in the Safari app and get the necessary tokens and all works, I even got to redirect to my app one the user is successfully authenticated using a custom URL scheme.
The only problem is that a prompt saying "Open in 'myApp'?" appears.
I need help figuring out a way to avoid the prompt from appearing or using another component to open Spotify's auth page without leaving the app.

Facebook app iframe won't attempt to load when logged in as page

I have an app that shows up as an iframe on a Page. (Here's an example.)
If you view the app tab as a Facebook user, whether you have the app installed or not, everything works correctly.
If you view the app tab as a Facebook Page that has not installed the app, everything works correctly.
If you view the app tab as a Facebook Page that has installed the app, nothing displays. In fact, when sniffing the HTTP headers, it looks like no attempt is ever made to load the app URL.
Any idea what needs to happen on the Facebook side of the equation in order to have the tab at least make an attempt to load the app's page?
Thanks!
This is now a desired behavior, once you trying to visit Application Tab by being logged in as Page you'll be prompted to use Facebook as regular user:
To access this page, you'll need to switch from using Facebook as your page to using Facebook as yourself.
BTW, this was described in bug Blank app page which is marked as fixed (and the described behavior sadly was a way to fix this)...

Resources