I’m writing a simple “FaceBook-This” function to open up a post for the user based on content from my app. What am I missing to get the FaceBook UI up?
public static void FacebookThis (string text)
{
if (SLComposeViewController.IsAvailable (SLServiceKind.Facebook)) {
var service = SLComposeViewController.FromService(SLServiceKind.Facebook);
service.SetInitialText(text);
}
}
You’re just missing the
PresentViewController()call, and then dismiss it in the completion handler: