title: ios 6 - Post to Facebook in app not working on device
body: <p>I have a button that brings up the Facebook ui to make a post, but it doesn't do anything on the device. It works fine in the simulator, but performs no action at all on the phone. </p>
  
  <p>Not sure what I can do to figure out the problem - </p>
  
  <p>Here is my ViewController.h</p>
  
  <pre><code>- (IBAction)postToFacebook:(id)sender;
  </code></pre>
  
  <p>ViewController.m</p>
  
  <pre><code>- (IBAction)postToFacebook:(id)sender {
      if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) {
          SLComposeViewController *controller = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];
          [controller setInitialText:@"Posted from IOS App Test -- It works!"];
          [self presentViewController:controller animated:YES completion:Nil];
      }}
  </code></pre>