title: Facebook Activity Privacy
body: <p>I am using the FB Javascript SDK to create an activity, the activity is posting fine but the documentation for how to set the privacy of an activity doesn't really give me anything. I have followed the documentation on this page: <a href="https://developers.facebook.com/docs/opengraph/actions/" rel="nofollow">https://developers.facebook.com/docs/opengraph/actions/</a></p>
  
  <p>I get an error when using the following code:</p>
  
  <pre><code>var fb_privacy = '{"value":"PRIVATE"}';
  fb_privacy = encodeURIComponent(fb_privacy);
  
  Error: (#100) privacy must contains a valid privacy 'value'
  </code></pre>
  
  <p>I have also tried the value "SELF" which yielded the same error. It says privacy is suppose to be a JSON encoded string but I can't seem to get anything to work currently.</p>