ios - SLComposeViewController won't set initialText for SLServiceTypeFacebook -


it seems bug in social framework, won't set initial text facebook service type. implementation using swift:

let view = slcomposeviewcontroller(forservicetype: slservicetypefacebook) if view.setinitialtext("some text") {     nslog("success") } else {     nslog("failure") } view.addurl(nsurl(string: "https://google.ro")) self.presentviewcontroller(view, animated: true, completion: nil) 

what works:

  • the url shows both, facebook , twitter
  • the initialtext works correctly twitter

what doesn't work:

  • the initialtext won't show facebook, though code above outputs "success"

update 2

it seems facebook doesn't want developers set initial text of message when sharing it's impossible sdk. in app implementing i've chosen screenshots app (uploaded images) letting user share progress on facebook.

update

the solution use facebook sdk ios, feature of social framework not supported facebook anymore.

not bug, facebook doesn't allow anymore.

use of ios share sheet subject facebook platform policy, including section 2.3 states apps may not pre-fill. in context of share sheet, means apps may not pre-fill share sheet's initialtext field content wasn't entered people earlier in use of app.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -