title: SWIFT : How to Share multiple Photos or Video on Facebook using FBSDKShareKit?
body: <p>I am using <strong>FBSDKShareKit</strong> to share <strong>video</strong> and <strong>images</strong> on <strong>facebook</strong>.</p>
  
  <p><em>Here is the code</em>:- </p>
  
  <pre><code>    if self.postObject.videoUrl.count &gt; 0 {
  
              let content = ShareMediaContent()
              for VideoData in self.postObject.postedMedia {
  
                  let video = ShareVideo.init(data: VideoData)
                  content.media.append(video)
              }
              for thumb in self.postObject.postedVideoThumb {
                  let photo = SharePhoto(image: thumb, userGenerated: true)
                  content.media.append(photo)
              }
              let dialog = ShareDialog(fromViewController: self, content: content, delegate: self)
              print(dialog.canShow)
              dialog.show()
  
      }
  </code></pre>
  
  <p>But I am getting 
  <strong>print(dialog.canShow) as false</strong>.</p>
  
  <p>And the error I am getting in the "<strong>didFailWithError</strong>" delegate is:-</p>
  
  <p><strong>" Error Domain=com.facebook.sdk.share Code=2 "(null)" UserInfo={com.facebook.sdk:FBSDKErrorArgumentValueKey={length = 1727854, bytes = 0x00000014 66747970 71742020 00000000 ... acdda1ed 0ae116c8 }, com.facebook.sdk:FBSDKErrorDeveloperMessageKey=Cannot share video data., com.facebook.sdk:FBSDKErrorArgumentNameKey=data} "</strong></p>
  
  <p>Where am I doing wrong?</p>