ios - Unable to set initialtext in ios9 in native facebook share dialog -
i trying set initial text slcomposeviewcontroller in ios 9 , displaying blank in dialog.
here code.
slcomposeviewcontroller *composecontroller = [slcomposeviewcontroller composeviewcontrollerforservicetype:slservicetypetwitter]; nsstring *initialtext = @"tesing text issue."; if (initialtext != nil) { [composecontroller setinitialtext:initialtext]; } dispatch_async(dispatch_get_main_queue(), ^ { //show progress hud here [self presentviewcontroller:composecontroller animated:yes completion:nil]; });
i have aslo check in sharing app, have same issue. can have workaround here?
facebook has deprecated api set initial text programmatically while sharing. below references:
- https://developers.facebook.com/docs/apps/review/prefill
- https://developers.facebook.com/docs/sharing/ios
hope helps.
Comments
Post a Comment