title: Add UIImage directly into FBSDKShareLinkContent with Swift?
body: <p>I have the FBSDK sharing function working with the following code:</p>
  
  <pre><code>if (FBSDKAccessToken.currentAccessToken() != nil) {
          // User is already logged in, do work such as go to
  
          let content : FBSDKShareLinkContent = FBSDKShareLinkContent()
          content.contentURL = NSURL(string: self.url_string)
          content.contentTitle = self.title_text
          content.contentDescription = self.desc_text
          content.imageURL = NSURL(string: "http://image.png")
  
          let button : FBSDKShareButton = FBSDKShareButton()
          button.shareContent = content
          button.frame = CGRectMake((UIScreen.mainScreen().bounds.width - 100) * 0.5, 50, 100, 30)
          button.center = self.view.center
          self.view.addSubview(button)
  
      }
  </code></pre>
  
  <p>The problem is that I don't have an imageURL, I have an image taken directly from the app's camera function stored as a UIImage variable. How can I attach an image to this FBSDKShareLinkContent without the image being hosted online? I'm using FBSDKShareLinkContent because I'm also sharing a link w/ title &amp; description.</p>
  
  <p>Edit, I'm trying FBSDKSharePhoto (as someone suggested) with this code, which lets me post the photo, but I can't get the URL to link properly even though <code>content.contentURL</code> is defined as it was before.</p>
  
  <pre><code>let photo : FBSDKSharePhoto = FBSDKSharePhoto()
          photo.image = self.scaledImage
          photo.userGenerated = true
  
          let content : FBSDKSharePhotoContent = FBSDKSharePhotoContent()
          content.contentURL = NSURL(string: self.url_string)
          content.photos = [photo]
  
          let button : FBSDKShareButton = FBSDKShareButton()
          button.shareContent = content
          button.frame = CGRectMake((UIScreen.mainScreen().bounds.width - 100) * 0.5, 50, 100, 30)
          button.center = CGPointMake(self.view.center.x, self.descLabel.center.y + 51 + 30) // 51 = 1/2 of height of descLabel, 30 = space below
          self.view.addSubview(button)
  </code></pre>