How to include app link in Facebook share dialog - ios

I am writing am app with Ionic/Cordova and using a Facebook plugin from here:
https://github.com/jeduan/cordova-plugin-facebook4
I created an app link using the Facebook Tools and then passed the URL (e.g. fb.me/1234567890) to the Facebook Share Dialog as the contentURL.
This works well in the browser, but fails on iOS - the Share Dialog appears but there is just an infinite spinner in it and the posted text never gets to Facebook. If I use any other non-AppLink URL, the Share Dialog works just fine.
This worked in the past using Cordova 3.x and the WizCorp Facebook plugin but with all the upgrades, perhaps a requirement has changed that I cannot find?

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?

iOS universal links not working from gmail app

I have implemented iOS universal links to my app and everything is working fine when link is send to email and triggered from mail app, but not works when triggered from gmail app (opens link in embedded browser). I find out that some other app links such as Youtube or TestFlight is working from gmail app. Please help me to find out what I'm doing wrong.
Universal Links only work in Gmail under very specific circumstances: the embedded webview needs to be already open, so clicking a Universal Link directly from the text of an email doesn't work. You can find a list with more information here.
It's possible YouTube and TestFlight actually aren't using Universal Links to trigger those apps. I haven't looked at them recently.

Facebook iOS SDK native login not working

I've implemented facebook sdk into my project and everything is setup exactly as shown in guide https://developers.facebook.com/docs/facebook-login/ios/v2.0, including info.plist file.
FacebookAppID, FacebookDisplayName and URL types are set (see image)
Everything is working when I use facebook app login, or browser login, but when I've added account into devide, so iOS native login dialog should be present, nothing happend, log only displays User cancelled every time I press Facebook login button.
I've done several projects before with facebook login implementation and I've not experienced this error. I think I'm missing something but somehow I can't figure. The appId and item 0 with prefix have the same numbers and display name is copied exactly from FB developer.
The strange issue I've noticed here is that when I first install app on device with FB account setup in settings, I can click it once...nothing happend and after second click the application is automatically disabled in Settings > Facebook.
UPDATE: I was able to login with native login dialog with older version of Facebook SDK (I've just replaced latest SDK with older one and now it works...don't forget to change permissions because latest SDK uses permissions public_profile instead of basic_profile used in older versions of SDK) why native login is not working with latest FB SDK is still a mistery :)
The answer to
'why native login is not working with latest FB SDK is still a
mystery'?
is here. See the upgrade guide form 3.13 > 3.14.
The default login behavior has changed from FBSessionLoginBehaviorUseSystemAccountIfPresent to FBSessionLoginBehaviorWithFallbackToWebView

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.

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