0

I am using SLComposeViewController for sharing in Facebook. While I didnt have Facebook installed on the device, the controller was coming up with texts pre filled as expected. After i installed Facebook, the setPreText is not showing.

Moreover, I cannot post to Facebook. Twitter is working fine.

My device has iOS8.

John
  • 8,468
  • 5
  • 36
  • 61
Saheb Roy
  • 5,899
  • 3
  • 23
  • 35
  • login with facebook in settings from iphone device – Noor May 21 '15 at 08:09
  • Ok, turned out i did login from the app but it not from settings. So did that and its posting, But what about the initial text. How to solve that? – Saheb Roy May 21 '15 at 08:17
  • Supposing your device is on iOS8.3, it's a related bug: http://openradar.appspot.com/20709403 – tbaranes May 21 '15 at 08:21

1 Answers1

0

A question related to your issue has already been asked here. This bug report has more details on why the setInitialText: does not work. Basically it is against the Facebook platform policy to pre-fill the share sheet.

Pre-fill using the iOS share sheet. For apps pre-filling using the iOS share sheet we recommend that you either remove all instances of pre-fill from your app and submit an update to Apple's App Store or use Facebook's share dialog for a more seamless experience.

Community
  • 1
  • 1
bangdel
  • 2,523
  • 5
  • 28
  • 42