title: SLComposeViewController
body: <pre><code>-(IBAction)post:(id)sender
  {
  if([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) {
      mySocialComposer = [[SLComposeViewController alloc]init];
      mySocialComposer = [SLComposeViewController    
      composeViewControllerForServiceType:SLServiceTypeFacebook];
      [mySocialComposer setInitialText:@&quot;Hello World&quot;];
      [mySocialComposer addImage:[IIImage imageNamed:@&quot;myImage.png&quot;]];
      
      [self presentViewController:mySocialComposer animated:YES completion:nil];
   }
  
   [mySocialComposer setCompletionHandler:^(SLComposeViewControllerResult result){
  
      NSString *outout = [[NSString alloc] init];
      
      switch (result) {
          case SLComposeViewControllerResultCancelled:
              outout = @&quot;Post Cancled&quot;;
              break;
              case SLComposeViewControllerResultDone:
              outout = @&quot;Post Done&quot;;
              
          default:
              break;
      }
      UIAlertView *myalertView = [[UIAlertView alloc]initWithTitle:@&quot;FaceBook&quot;  
      message:outout delegate:nil cancelButtonTitle:@&quot;Ok&quot; otherButtonTitles:nil, nil];
      [myalertView show];
      }];
  
  
  }
  </code></pre>
  <p>I want to post something on Facebook without image but when I post with image it didn't work and give an error alert. But when I add an image with my post it will post successfully. All I want I to post without image. Is there any way to do that.?</p>