【发布时间】:2015-11-06 01:12:30
【问题描述】:
我需要在用户的墙上贴一张带有标准文字的图片。你能用 FBSDK 4.x 做到这一点吗?
let photoshare = FBSDKSharePhoto(image: recortarImagem(), userGenerated: true)
let content = FBSDKSharePhotoContent()
content.photos = [photoshare]
let dialog = FBSDKShareDialog()
dialog.delegate = self
dialog.shareContent = content
dialog.fromViewController = self
dialog.mode = FBSDKShareDialogMode.ShareSheet
dialog.show()
【问题讨论】:
-
你不能预先填写图片标题——它必须由用户输入。
标签: ios facebook image swift sdk