I'm experiencing very strange behaviour with FacebookShare.
When I bring up the shared dialogue, I get the following screen on iOS.
Once I tap on Share With Your Facebook App, it doesn't trigger the shareDialog.completion at all (see below for code). But if I log in via the email/password shown underneath, it works.
I suppose the upper section is over the native app, while the lower part goes over the web. I have the native Facebook app already installed on my device.
let myContent = LinkShareContent(url: url!, quote: quote)
let shareDialog = ShareDialog(content: myContent)
shareDialog.mode = .automatic
shareDialog.presentingViewController = self
shareDialog.completion = {
result in
switch result {
case .success:
print("Share: Success")
case .cancelled:
print("Share: Cancel")
case .failed:
print("Share: Fail")
}
}
do {
try shareDialog.show()
} catch {
self.notifyUserOfSharingError()
}
