objective c - setInitialText not work with IOS 8.3 (facebook,social,SLComposeViewController) -


the functionality of slcomposeviewcontroller no longer works expected newest facebook iphone app update of april 24th. initial text specified ignored, though setinitialtext method returns true if successful. dialog returns "done" whether hit "done" or "cancel". realize apple call , i'm not using facebook sdk, have verified works previous version of facebook app installed when upgrade facebook app on iphone, functionality no longer works expected. note result of completion handler returns "done" - when hit "cancel" , also, setinitialtext: nothing now. verified same code worked pre-the april 24th release.

if([slcomposeviewcontroller isavailableforservicetype:slservicetypefacebook]) {      controller = [slcomposeviewcontroller composeviewcontrollerforservicetype:slservicetypefacebook];        [controller setinitialtext:@"hiiiiiii"];     [controller setcompletionhandler:^(slcomposeviewcontrollerresult result)      {          if (result == slcomposeviewcontrollerresultcancelled)          {              nslog(@"the user cancelled.");          }          else if (result == slcomposeviewcontrollerresultdone)          {              nslog(@"the user posted facebook");          }      }];     [self presentviewcontroller:controller animated:yes completion:nil]; } else {     sclalertview *alert = [[sclalertview alloc] init];     [alert showwarning:self title:@"alert" subtitle:@"facebook not installed"  closebuttontitle:@"ok" duration:0.0f]; } 

at time of post, fb's still not allowing set initial text, using fb sdk.

a way implemented bypass issue copy content clipboard , show dialog notify users can paste preset content.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -