title: How to post or share in Facebook iOS SDK?
body: <p>I'm trying to post a message or share a photo in my fb using FacebookSDK. I already follow the steps on how to install it. I'm done applying the login tutorial, but the problem now is how to post a message or share it into my FB using my app. There are a lot of tutorial like this <a href="http://www.raywenderlich.com/44640/integrating-facebook-and-parse-tutorial-part-1" rel="nofollow">one</a>. I think this is already old for FacebookSDK. Sorry If I'm so noob for this. I know this not the right page to post this, but I don't have any idea now. If you have a tutorial on how to post or share. Please give me link. If ever, can you provide steps for this. </p>
  
  <p>I already try <a href="https://developers.facebook.com/docs/sharing/ios" rel="nofollow">this</a>, but It doesn't post or share.</p>
  
  <p><strong>UPdate</strong></p>
  
  <p>this is my code</p>
  
  <pre><code>import "ShareController.h"
  #import &lt;FBSDKShareKit/FBSDKShareKit.h&gt;
  #import &lt;FBSDKMessengerShareKit/FBSDKMessengerShareKit.h&gt;
  
  
  @implementation ShareController
  
  - (void)viewDidLoad {
      [super viewDidLoad];
  
      FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
      content.contentURL = [NSURL URLWithString:@"https://developers.facebook.com"];
  
      FBSDKShareButton *button = [[FBSDKShareButton alloc] init];
      button.shareContent = content;
      [self.view addSubview:button];
  }
  
  - (IBAction)shareButton:(id)sender {
  
  
      UIImage * image = [UIImage imageNamed:@"sample.png"];
  
      FBSDKSharePhoto *photo = [[FBSDKSharePhoto alloc] init];
      photo.image = image;
      photo.userGenerated = YES;
      FBSDKSharePhotoContent *content = [[FBSDKSharePhotoContent alloc] init];
      content.photos = @[photo];
  
      FBSDKShareDialog *dialog = [[FBSDKShareDialog alloc] init];
      dialog.fromViewController = self;
      dialog.shareContent= content;
      dialog.mode = FBSDKShareDialogModeShareSheet;
      [dialog show];
  }
  </code></pre>
  
  <p>here's the code for my login. I think this is simple code</p>
  
  <pre><code>@implementation ViewController
  
  - (void)viewDidLoad {
      [super viewDidLoad];
  
      FBSDKLoginButton *loginButton = [[FBSDKLoginButton alloc] init];
      loginButton.center = self.view.center;
      [self.view addSubview:loginButton];
      // Do any additional setup after loading the view, typically from a nib.
  }
  </code></pre>