if SLComposeViewController.isAvailableForServiceType(SLServiceTypeFacebook)
{
let facebookSheet:SLComposeViewController =
SLComposeViewController(forServiceType: SLServiceTypeFacebook)
facebookSheet.setInitialText("You can wash your cloths easy, join with Michigan Wash now !")
let shareImageUrl = NSURL(string: "https:\/\/michiganwash.info\/uploads\/shareAssets\/logoimage.png")
facebookSheet.addURL(shareImageUrl)
}
self.presentViewController(facebookSheet, animated: true, completion: nil)
}
If I try to share text and image on the simulator it's work fine. I got the response like this image.
But when I run this application on my device, it does not seems pre-populate text in the device. I got just image on right side.
Somebody has the better solution using this?