2

我正在尝试使用FBSDKShareKit. 但问题是,我无法在图像中添加描述。目前我有:

let content: FBSDKSharePhotoContent = FBSDKSharePhotoContent()
let photo:FBSDKSharePhoto = FBSDKSharePhoto()
photo.image = imageView.image
photo.isUserGenerated = true
content.photos = [photo]
content.contentURL = URL(string:directUrl)
FBSDKShareDialog.show(from: self, with: content, delegate: nil)

我也试过:

let vc = SLComposeViewController(forServiceType:SLServiceTypeFacebook)
vc?.add(imageview.image)
vc?.add(URL(string: "http://www.example.com/"))
vc?.setInitialText("description")
self.present(vc!, animated: true, completion: nil) 

使用social,其中根据这个答案setInitialText不起作用 我也试过这个:
在此处输入图像描述

有没有其他方法可以将带有描述的图像分享给 fb?

4

0 回答 0