dynamic parameters = new ExpandoObject();
parameters.source = new FacebookMediaObject
{ ContentType = string.Format("video/{0}", VideoExtension.Split('.')[1]),FileName = VideoName } .SetValue(File.ReadAllBytes(filePath));
{
ContentType = string.Format("video/{0}", VideoExtension.Split('.')[1]),
ContentType = string.Format("video/{0}",
FileName = VideoName
} .SetValue(File.ReadAllBytes(filePath));
parameters.title = VideoTitle;
parameters.description = VideoTitle;
parameters.universal_video_id = new Guid();
parameters.thumb = coverPath;
parameters.published = false;
parameters.unpublished_content_type = "DRAFT";
dynamic uploadresult = fb.Post("/367728493684998/videos", parameters);