serg
serg

Reputation: 111265

Unable to set privacy for newly created Album

I am trying to create Album that is visible to everyone:

FB.api("/me/albums", "post", {
    name: "album name", privacy: '{"value":"EVERYONE"}'
}, function(response) {
    //...
});

but it gets created with friends privacy.

Docs say that privacy field is:

A JSON-encoded object that defines the privacy setting for the album, for example: {"value":"SELF"}

value: The privacy value for the object, specify one of EVERYONE, CUSTOM, ALL_FRIENDS, NETWORKS_FRIENDS, FRIENDS_OF_FRIENDS, SELF.

I tried '{"value":"EVERYONE"}', {"value":"EVERYONE"}, {value:"EVERYONE"} - no effect. Is this a bug or I am missing something?

Upvotes: 3

Views: 1222

Answers (2)

ifaour
ifaour

Reputation: 38135

I just filed it as a bug in the Facebook Bug Tracker. Please vote.


UPDATE: This is because of the new "per-app post privacy control". Please check @AlexandreCouturon answer.

Upvotes: 3

Alexcode
Alexcode

Reputation: 1598

This happens because the new per-app post privacy control is set to Friends so this App can only set privacy as wide as friends.

Please read the following blog post for more info: https://developers.facebook.com/blog/post/543/

Upvotes: 5

Related Questions