FBSessionLoginBehaviorWithFallbackToWebView opens in safari but not in webview - ios

I have using Facebook login in my app. I am following guidelines of Facebook and using native app if it's installed. When native app is installed it works fine. But when it's not I am having a issue.
I specified FBSessionLoginBehaviorWithFallbackToWebView as LoginBehavior. But when app is not installed it opens up Facebook Login page in safari not in webView. I thought this behavior will open it in webView if Facebook app is not installed in user's device.
Do i need to use any other LoginBehavior to use Native app first and then webView not the safari?

Try this behavior:
FBSessionLoginBehaviorForcingWebView
It will not redirect to Safari

Related

URL Redirect not working in iOS only

I have an iOS app (and desktop/mobile web/android application versions as well) that has the "Share to Facebook" functionality. When users share to Facebook, the app generates a public link to the page and posts to Facebook. When users click on the link from Facebook, it routes to a vanity URL and displays the page.
Unfortunately this routing functionality does not seem to be working on iOS devices. When clicking on the share link in the iOS Facebook app or copy/pasting the link into Safari on iOS, the original (non-vanity) link hangs with a blank page and no redirect happens.
I've tested this on Android, Windows desktop, Mac Desktop on multiple browsers with no issues. The issue only persists on iOS in the Facebook in-app browser, in Safari, and also in Chrome for iOS.
Anyone have any ideas what might be causing this?

PWA added to homescreen, AccountKit not redirecting

After adding our PWA to homescreen, when going to the login flow, on Android accountkit opens a tab in chrome, whilst on iOS, it opens inside the PWA, then the flow is broken as accountkit gets stuck on the verified page.
Does anyone knows how to force accountkit to open in a browser tab?
You should either use the native iOS and Android SDKs for AccountKit, or if you prefer to continue using the web sdk, you must switch to the "Basic Web" SDK for AccountKit: https://developers.facebook.com/docs/accountkit/webbasic
The Basic Web SDK does not use any Javascript, which is the root cause of the issue in iOS webviews. You can read more about it in the FAQ: https://developers.facebook.com/docs/accountkit/faq/#faq_645353795617467

React Native FBSDK open App Invite Dialog in Webview

Is it possible to open the app invite dialog in the native facebook app or webview, similar to ShareDialog.setMode("webview")?
Currently the invite dialog launches the Safari browser, and has lead to issues such as having to log in again or not going back to the app but staying on Facebook after sending invites.
Thanks!

Facebook In-App Browser Cannot Launch iTunes Link

When iOS Facebook's in-app browser loads my web page, I have a link there to "Download App Now" which links to the App Store Page, i.e.
https://itunes.apple.com/my/app/XXXXX/12345678?ls=1&mt=8
If this is loaded in Safari, it launches the corresponding app page in App Store correctly and users can instantly download the app.
However, if launched within Facebook's in-app browser, the browser shows a warning: "Leave Facbook? This web page is trying to open an app outside of Facebook. Are you sure you want to open it?"
If I click "Open App", nothing happens. I've tried changing the link using href, onclick, target=_blank and nothing works, basically FB app just failed to launch the external app page.
Is this a bug with Facebook app? I need the open app link feature as I'm showing a website and wish to redirect mobile users to download the app instead.
I'm using iPhone 6 Plus running iOS 8.1, and the latest Facebook app. I tried it in my iPad 4 iOS 7, same problem too.
Thanks!
As noted by WizKid, this is/was a known problem. It should be fixed with the most recent version of the app.

ios - integrating facebook with ios5 app

I'm trying to integrate facebook in my iOS 5 application.
As mentioned in facebook documentation, i'm doing everything as they mentioned.
Usually when facebook is initiated to authorize, it will take the user to browser opening facebook website and asks to authenticate. but in my case, it opens browser and immediately it goes back to the app. I didn't understand what's happening.
Here's the video of the issue that I'm facing
I noticed that if the facebook app is installed on iphone, above mentioned problem is noticed
Is your app ID on your project .plist?
Look at "Modify the app property list file" on the Facebook iOS tutorial

Resources