-(IBAction)post:(id)sender
{
if([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) {
    mySocialComposer = [[SLComposeViewController alloc]init];
    mySocialComposer = [SLComposeViewController    
    composeViewControllerForServiceType:SLServiceTypeFacebook];
    [mySocialComposer setInitialText:@"Hello World"];
    [mySocialComposer addImage:[IIImage imageNamed:@"myImage.png"]];
    
    [self presentViewController:mySocialComposer animated:YES completion:nil];
 }
 [mySocialComposer setCompletionHandler:^(SLComposeViewControllerResult result){
    NSString *outout = [[NSString alloc] init];
    
    switch (result) {
        case SLComposeViewControllerResultCancelled:
            outout = @"Post Cancled";
            break;
            case SLComposeViewControllerResultDone:
            outout = @"Post Done";
            
        default:
            break;
    }
    UIAlertView *myalertView = [[UIAlertView alloc]initWithTitle:@"FaceBook"  
    message:outout delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil, nil];
    [myalertView show];
    }];
}
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.?
 
     
    