title: Video Sharing on facebook
body: <p>I want to share image and video on face book wall using sdk.</p>
  
  <p>I use following code to share image</p>
  
  <pre><code>FBSDKSharePhoto *photo = [[FBSDKSharePhoto alloc] init];
  photo.image = [UIImage imageNamed:@"Classic-Guitar.jpg"];
  photo.userGenerated = YES;
  FBSDKSharePhotoContent *content = [[FBSDKSharePhotoContent alloc] init];
  </code></pre>
  
  <p>content.photos = @[photo];</p>
  
  <pre><code>FBSDKShareDialog *shareCodeDialog;
  shareCodeDialog = [FBSDKShareDialog new];
  [shareCodeDialog setDelegate:self];
  [shareCodeDialog setShareContent:content];
  [shareCodeDialog setFromViewController:self];
  [shareCodeDialog show];
  </code></pre>
  
  <p>Using this code i am able to post image on wall, but while sending video i am using following code</p>
  
  <pre><code>NSURL *videoURL = [[NSURL URLWithString:@"https://www.youtube.com/watch?v=rSAiSTkVMfs"] absoluteURL];
  FBSDKShareVideo *video = [[FBSDKShareVideo alloc] init];
  video.videoURL = videoURL;
  FBSDKShareVideoContent *content = [[FBSDKShareVideoContent alloc] init];
  content.video = video;
  
  
  FBSDKShareDialog *shareCodeDialog;
  shareCodeDialog = [FBSDKShareDialog new];
  [shareCodeDialog setDelegate:self];
  [shareCodeDialog setShareContent:content];
  [shareCodeDialog setFromViewController:self];
  [shareCodeDialog show];
  </code></pre>
  
  <p>but it not getting posted gives and error in delegate saying
  Error Domain=com.facebook.sdk.share Code=2 "The operation couldn’t be completed. (com.facebook.sdk.share error 2.)" UserInfo=0x16d95990 {com.facebook.sdk:FBSDKErrorArgumentValueKey=<a href="https://www.youtube.com/watch?v=rSAiSTkVMfs" rel="nofollow">https://www.youtube.com/watch?v=rSAiSTkVMfs</a>, com.facebook.sdk:FBSDKErrorArgumentNameKey=videoURL, com.facebook.sdk:FBSDKErrorDeveloperMessageKey=Invalid value for videoURL: <a href="https://www.youtube.com/watch?v=rSAiSTkVMfs" rel="nofollow">https://www.youtube.com/watch?v=rSAiSTkVMfs</a>}</p>