SLComposeViewController setInitialText does not work when using SLServiceTypeFacebook on iOS 8.3
Originator: | agiletortoise | ||
Number: | rdar://20709403 | Date Originated: | 27-Apr-2015 11:19 AM |
Status: | Open | Resolved: | |
Product: | iOS SDK | Product Version: | 8.3 |
Classification: | Bug | Reproducible: | Always |
Summary: SLComposeViewController configured with SLServiceTypeFacebook, will return YES from setInitialText, but the initial text is not retained and displayed in the dialog when the view controller is presented. This is a new bug in iOS 8.3 and only occurs on a device. Text appears fine when used on iOS Simulator, and SLComposeViewController setInitialText continues to work properly using SLServiceTypeTwitter. Steps to Reproduce: - Open attached sample project. - Run on a device. - Make sure the device has at least one valid Twitter account and a Facebook login configured in iOS settings. - Tap the "Twitter" button, SLComposeViewController is created and displayed with the initial text as expected. - Tap the "Facebook" button, SLComposeViewController is created and displayed, but the value set in setInitialText is not maintained. Expected Results: SLComposeViewController should display the text provided in the setInitialText method call. Actual Results: SLComposeViewController text field is blank. Version: iOS 8.3 Notes: Configuration: Any Attachments: 'BUG_SLCompose.zip' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Radar Duped, still happening in iOS 10
Looks like the problem is the FB App intercepting and providing its own SLComposeViewController, not Apple's one. Try this on device, uninstalling the FB app and everything works again.
For reference: https://developers.facebook.com/bugs/962985360399542/
I agree with scott.byrns.
I have been tested SLComposeViewController with facebook and it works great. When i update facebook (version 29.0 - 24 April 2015) at 26 April 2015, setInitialText and addImage methods are not work properly. After push share button, i check facebook account and i just saw shared URL. (i also use addURL method.)
I have come across this same issue. What I found is that this only happens if you have the latest facebook app installed.