Prior to using Facebook SDK we used to share via UIActivityViewController since Facebook does not allow for us to pre-fill information on the user sharing, our solution was to use information the user description of the Image being share
UIPasteboard.general.string. So the app would switch to the messenger and the user could paste. This worked just fine until we started using the Facebook SDK.
Now it seems that the
UIPasteboard.general.string is reset when it opens up messenger and we no longer can get the image description copied to the clipboard.
This is how I’m sharing to messenger:
let sharePhoto = FBSDKSharePhoto() sharePhoto.image = image let content = FBSDKSharePhotoContent() content.photos = [sharePhoto] FBSDKMessageDialog.show(with: content, delegate: delegate)