0

If I use these parameters and upload image or update status then it is uploading/updating in Audience as Public. But i need to change Audience to only me.

var parameters = new Dictionary<string, object>
{
    { "message", FacebookMessage },
    { "privacy", new Dictionary<string, object>
        {
            { "value", "ALL_FRIENDS" }
        }
    }
};

I tried replacing "ALL_FRIENDS" as "ONLY_ME" but error is thrown.

Mikko Viitala
  • 8,344
  • 4
  • 37
  • 62
user3934867
  • 11
  • 1
  • 7

1 Answers1

0

Try giving SELF in the value for value key of the privacy dictionary.

 {"value", "SELF"}

Please see this question as well: facebook c# api, video getting uploaded but its PUBLIC

Community
  • 1
  • 1
Piyush Parashar
  • 866
  • 8
  • 20
  • Yup i should wait for few minutes to mark it as answer, and can help me where did you get that solution. – user3934867 Nov 29 '14 at 14:05
  • I Google the questions which I find interesting. I would read documentations, blogs or try the code etc. That is my way of learning new stuff. – Piyush Parashar Nov 29 '14 at 14:07
  • can you suggest me with few links – user3934867 Nov 29 '14 at 14:08
  • [This blog](http://blog.prabir.me/posts/facebook-csharp-sdk-writing-your-first-facebook-application), [SO question](http://stackoverflow.com/questions/3880413/how-to-set-facebook-album-privacy-with-graph-api) – Piyush Parashar Nov 29 '14 at 14:11