Open a post of page by native Facebook app on iOS - ios

If the native Facebook app is installed on the iPhone. How do I open a post of page link into the native Facebook app from my app. In the case of opening by Safari, the link is same as:
https://facebook.com/mypage/post/< post_id >
thanks.

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?

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.

FBSessionLoginBehaviorWithFallbackToWebView opens in safari but not in webview

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

How to open mobile webapp link in Safari from native Facebook app on iOS?

Our webapp works nicely inside the Facebook native iOS app. However, we have some links that need to open a new window in mobile Safari rather than opening inside the Facebook (UIWebView?) app. Just a plain HTML <a href="http://site...." target="_blank"> doesn't do it--still opens within the Facebook app (latest version.) Any way to get a plain link or a window.open() to switch to Safari for the page load ?
The web team on my company tried that approach and failed. What we ended up doing was using Facebook deep linking to handle this on our native iOS app.
You can find out more about Facebook deep linking here:
https://developers.facebook.com/docs/ios/link-to-your-native-app-ios-sdk/
It's a great solution if you already have an iOS app.
I hope this helps.

Resources