2

I am trying to share an image with description to the facebook from my app using FBSDKShareKit. but the problem is, I am unable to add description with the image . Currently I have:

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)

I also have tried:

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) 

using social ,In which setInitialText does not work according to this answer
I tried this too: enter image description here

Is there any other way in which I can share image with description to fb?

Invictus Cody
  • 517
  • 6
  • 17
  • Facebook is in the process of removing all ways to specify this data dynamically, see https://developers.facebook.com/docs/apps/changelog#v2_9_90_day_deprecations This information will _only_ be taken from the Open Graph meta tags the shared URL returns. – CBroe Jul 03 '17 at 07:19

0 Answers0