title: Facebook Javascript SDK open-graph: error adding custom objects for custom stories
body: <p>I've created a custom object, called 'Opinion' to build custom stories around it.</p>
  
  <p>I'm trying to add some app-owned objects from my website using the javascript sdk.</p>
  
  <p>The sample code facebook gives me is:</p>
  
  <pre><code>FB.api(
    'me/objects/[namespace]:opinion',
    'post',
    {
      app_id: xxxxxxxx,
      type: "[namespace]:opinion",
      url: "http://samples.ogp.me/331257847005141",
      title: "Sample Opinion",
      image: "https://fbstatic-a.akamaihd.net/images/devsite/attachment_blank.png",
      description: ""
    },
    function(response) {
      // handle the response
    }
  );
  </code></pre>
  
  <p>The reponse is an error (OAuth Exception): </p>
  
  <pre><code>2500: Cannot specify type in both the path and query parameter.
  </code></pre>
  
  <p>If i remove the <code>type</code> parameter, i get another error:</p>
  
  <pre><code>(#100) The parameter object is required
  </code></pre>
  
  <p>Same if I remove <code>[namespace]:opinion</code> from the path.</p>
  
  <p>I don't understand why, and there's no reference about this after googling it.</p>
  
  <p>Why this? Any resource i can refer to solve that?</p>