在Facebook分享中标记页面 - iOS Facebook SDK

时间:2017-12-08 12:38:51

标签: ios swift facebook facebook-ios-sdk facebook-ios-sdk-4.0

我在我的iOS应用程序中使用Facebook共享。我已经尝试搜索标记页面的可能性,但没有找到。是否可以在Facebook共享中标记页面?

我试图通过Facebook SDK标记的示例Facebook页面:

  1. https://www.facebook.com/NextStepFitness
  2. https://www.facebook.com/operationusa/
  3. 以下是我的代码:

      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.1 Swift 3.2 iOS 10.3.3 & iOS 11 FacebookSDK 4.19.0

0 个答案:

没有答案