title: Passing parameters to Facebook Open Graph API
body: <p>I'm trying to upload a video to the Facebook open graph using the C# SDK. The video seems to upload fine and I get an Id for the activity, but only the sample metadata appears.</p>
  
  <p>After a little digging, I found this:</p>
  
  <blockquote>
    <p>Before being able to publish an Open Graph action for a user and having define its corresponding connected object type in Step 3, you will now need to create a publicly accessible web page that represents this object using Open Graph metatags. Once this object page is created, you can use the Graph API to publish an action.</p>
  </blockquote>
  
  <p>Since this is a client-side app, I don't have a web page that I can refer Facebook to. So how do I pass in the right parameters?</p>
  
  <p>Here's my code:</p>
  
  <pre><code>var parameters = new Dictionary&lt;string, object&gt;();
  parameters["source"] = new FacebookMediaObject { ContentType = "video/mpeg", FileName = "video.mpeg" }.SetValue(File.ReadAllBytes(@"D:\sample video.MP4"));
  parameters["og:title"] = "Sample video";
  parameters["title"] = "Sample video";
  parameters["og:description"] = "Test description";
  parameters["highlight"] = "http://samples.ogp.me/287287444686523"; // If I don't put this, the upload fails
  fb.PostAsync("/me/myobjectname:share", parameters);
  </code></pre>
  
  <p>Thanks!</p>