I found a good way around this, which still gives the user control.
For Facebook only, before the SLComposerViewController submission, I show a dismissal notification (with a hold of 6 seconds if OK was not pressed). This warning will say, "Write to your friends about how you played! \ N \ nYou can just paste PASTE for a pre-configured message."
Immediately after showing a warning, I then use the following to send a pre-configured message to UIPboardboard:
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; pasteboard.string = msg;
So, the SLComposeViewController is presented and a warning is displayed above it. When the user rejects the warning (or skips 6 seconds and dismisses himself), the user can simply PASTE, right in the message body, your pre-configured message. Or not, what a beauty of it.
Hope this helps some others get around what the FB decided to suddenly achieve. I didn’t even understand that it’s against the policy to use the setInitialText method for FB.
Greetings.
Mark Ferbert May 24 '15 at 21:48 2015-05-24 21:48
source share