Prior to using we used to 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 being share UIPasteboard.general.string. So the 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() = [sharePhoto] content, delegate: delegate)

Source link


Please enter your comment!
Please enter your name here