gpt4 book ai didi

ios - 通过 Facebook native 应用程序共享时缺少“引用”-iOS Facebook SDK

转载 作者:行者123 更新时间:2023-11-28 07:57:14 28 4
gpt4 key购买 nike

我在我的 iOS 应用程序中使用 Facebook 共享。通过 Facebook Native 应用程序共享时缺少“引用”,请检查以下屏幕截图:

enter image description here


但是当 FBSDKShareDialogModefeedBrowser 时它工作正常。检查以下屏幕截图:

enter image description here

可能是什么问题?最近是否从 Facebook 删除了此功能?下面是我的代码:

  let content = FBSDKShareLinkContent()
content.contentURL = URL(string: "https://www.google.co.in/")
content.hashtag = FBSDKHashtag(string: "#FeelingGood")
content.quote = "Sample Quote"

let dialog = FBSDKShareDialog()
dialog.fromViewController = self

dialog.shareContent = content
dialog.delegate = self
dialog.mode = FBSDKShareDialogMode.native
if !dialog.canShow() {
dialog.mode = FBSDKShareDialogMode.automatic
}
dialog.show()

我正在使用 Xcode9.1Swift 3.2iOS 10.3.3iOS 11,和 FacebookSDK 4.19.0

最佳答案

  let content = FBSDKShareLinkContent()
content.contentURL = URL(string: "https://www.google.co.in/")
content.hashtag = FBSDKHashtag(string: "#FeelingGood")
content.quote = "Sample Quote"

let dialog = FBSDKShareDialog()
dialog.fromViewController = self

dialog.shareContent = content
dialog.delegate = self
dialog.mode = FBSDKShareDialogMode.shareSheet
if !dialog.canShow() {
dialog.mode = FBSDKShareDialogMode.automatic
}
dialog.show()`

关于ios - 通过 Facebook native 应用程序共享时缺少“引用”-iOS Facebook SDK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47714127/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com