unable to post pre-populate text into Facebook in Device using SLComposeViewController

108 Views Asked by At
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.

enter image description here 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?

0

There are 0 best solutions below