The code:
let shareFB : SLComposeViewController = SLComposeViewController(forServiceType: SLServiceTypeFacebook)
shareFB.setInitialText("test")
self.presentViewController(shareFB, animated: true, completion: nil)
works great in the simulator but not on device. Why? Is there another method of doing this. I need to be able to post a message and a link.