swift 4 中未显示 Facebook SharePhoto 对话框

Facebook SharePhoto dialog does't show in swift 4

FBSDKSharingDelegate

let FBImage = FBSDKSharePhoto()

FBImage.image = snap
FBImage.isUserGenerated = true

let content = FBSDKSharePhotoContent()
content.photos = [FBImage]
let dialog = FBSDKShareDialog()
dialog.mode = .automatic
dialog.delegate = self
dialog.fromViewController = self
dialog.shareContent = content

if dialog.canShow(){
   dialog.show()
 }

// Facebook 授权权限

FBSDKGraphRequest(graphPath: "me", parameters: ["fields":"id,name,first_name,email,birthday"]).start(completionHandler: { (connection, result, error) in })

-canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"

在您的手机中安装 Facebook 应用程序。

I have Not error But Application not install in my mobile so don't open dialog box.