Open Facebook APP URL in the Facebook Android app instead of browser - android

i noticed that when I click on a Facebook App Url inside Facebook Mobile App on Android, the app is opened/redirect in the browser and not inside the Facebook app. Instead if I open the app in an IOS device, the app is opened inside Facebook app. Why? Can I have the same behaviour in Android device?
You can test the problem here:
Take an Android device
Open the facebook app and go to https://apps.facebook.com/1431973097077103 (you have to do a post with this link to click on it)
Android device redirect to browser, IOS device remain inside Facebook
Thanks!

Related

Can android gmail app login sessions be redirected to a real browser like chrome instead of the WebView?

I have an IdP which needs to open an app to complete my Gmail login (or any other Google workspace app).
Once I log in to my IdP, it asks me to open the authenticator app but the WebView implementation that Gmail has does not let me open apps through intents or universal links. I have developer access to the page that asks the user to open the app and the app itself. Can I somehow make the WebView launch a browser like chrome to complete the login? OR can I register my app with Google/Gmail to be allowed to be opened through the WebView?

Huawei HMS - Open app from browser with custom uri schema

I'm developing an app that use the AppAuth library.
https://github.com/openid/AppAuth-Android
In the app I click on a button that open a browser tab with the login page. After the login the website open a custom uri "com.myapp:/oauth2redirect" with data needed to app for the login.
In the devices with Google Chrome (after the login) the app appears, the browser is closed and the user continue to use the app.
In Huawei device with Huawei browser, a snackbar appears asking the user to open the app "The site would like to open APP". This snackbar disappears after 5 seconds. If the user click on the snackbar the browser is closed and the app appears, but if the user don't click it and close the browser the app don't receive the login params and nothing works.
For the users is more complicated because have to do more actions to do a simple operation that on Google devices is automatic.
Someone use AppAuth or custom uri scheme on Huawei devices? How to solve this problem?
Please Set device default browser to Chrome using Settings->Apps->Default Apps->Browser App
BTW, Could the app handle redirect URI with the following configuration as suggested by the app developer in link on HMS phone normally?

Difference between Facebook login behaviour using Appcelerator/ titanium/ alloy

I am using appcelerator's Facebook module: https://github.com/appcelerator-modules/ti.facebook
However, it's quite poorly documented.
My question is what's the difference between the following Facebook login behaviours (https://github.com/appcelerator-modules/ti.facebook#facebook-login-and-authorization):
LOGIN_BEHAVIOR_BROWSER
LOGIN_BEHAVIOR_NATIVE
LOGIN_BEHAVIOR_SYSTEM_ACCOUNT (iOS only)
LOGIN_BEHAVIOR_WEB (iOS only)
LOGIN_BEHAVIOR_NATIVE_WITH_FALLBACK (Android only - NATIVE will attempt to fallback on iOS)
LOGIN_BEHAVIOR_DEVICE_AUTH (Android only)
There's seems to be no explanation or screenshots in what any of these do.
I understand the browser one, but the NATIVE, SYSTEM_ACCOUNT and
NATIVE_WITH_FALLBACK all seem to do the same thing (only tested on ios).
LOGIN_BEHAVIOR_BROWSER :
Opens login window in the default Web Browser.
LOGIN_BEHAVIOR_NATIVE :
Opens login window with the native Facebook app. On iOS it will attempt to fallback to if the Facebook app is not installed or Facebook chooses it internally. For Android use to get this behavior.
LOGIN_BEHAVIOR_SYSTEM_ACCOUNT :
Attempts to login with through the Facebook account currently signed in through Settings.
LOGIN_BEHAVIOR_WEB :
Opens login window through a modal browser window.
LOGIN_BEHAVIOR_NATIVE_WITH_FALLBACK :
Opens login window with the native Facebook app. On Android it will attempt to fallback to if the Facebook app is not installed. For iOS use to get this behavior.
LOGIN_BEHAVIOR_DEVICE_AUTH :
Expose Facebook Login for devices such as Android TV and Fire TV.

Facebook complete logout from android app that uses the Facebook SDK

I have a problem with the Facebook SDK for Android: basically I have an app X that uses the Facebook SDK to login (since I also have the "Facebook" app for Android installed on my smartphone, it uses its native login screen to access) .
In this way, if I login from my app X via facebook SDK, I find myself also logged in in the "Facebook" app for Android.
Now the question arises: if I want to disconnect from my app X (maybe because I want to change user or because I used the app on another phone not mine), the facebook SDK does not allow the total disconnection from FB, but only from my app X.
This is a problem because if I open the app "Facebook" for Android, I find myself still connected and if I close and reopen my app X, it notes that there is a FB session opened and It auto connect me with that user.
How can I make complete logout from FB from my app X?
Thanks
Ok, the only method to completely logout facebook is to disable SSO login and use the web version...
Just try to do the following: LoginManager.getInstance().setLoginBehavior(LoginBehavior.WEB_ONLY)
Pros: LoginManager.getInstance().logOut() works fine in this case.
Cons: the authentication will always appear in a webview dialog.

Facebook canvas web app doesn't show in iOS facebook app

I've got a simple Facebook canvas web app. Works fine on desktop. We are trying to make it work inside the relevant android and iOS Facebook apps, without it popping the user out of the facebook app into the mobile browser.
This is no problem for Android. The canvas app url displays inside the facebook android app and keeps the user logged in.
However, the iOS version just shows: "Either this application has not configured its mobile web URL or the URL could not be verified as owned by the application. Unable to redirect"
If we add a Mobile Web URL, this solves the problem for iOS, but it then causes the Android to pop out of the facebook app and opens it up in a browser which requires the users to login to facebook again.
Any ideas / work arounds?

Categories

Resources