ios - Share text to Facebook Objective-C -
i'm trying share text on facebook via ios application. i've managed working in swift written application this: @ibaction func shareaction(sender: anyobject) { if slcomposeviewcontroller.isavailableforservicetype(slservicetypefacebook){ var facebooksheet:slcomposeviewcontroller = slcomposeviewcontroller(forservicetype: slservicetypefacebook) facebooksheet.setinitialtext("preadded text") self.presentviewcontroller(facebooksheet, animated: true, completion: nil) } else { var alert = uialertcontroller(title: "accounts", message: "please login facebook account share.", preferredstyle: uialertcontrollerstyle.alert) alert.addaction(uialertaction(title: "ok", style: uialertactionstyle.default, handler: nil)) self.presentviewcontroller(alert, animated: true, completion: nil) } } however, code written in objective-c. question is, there similar way of writing in objective-c? you can achieve implementing s...