Reputation: 37
I've looked into the Facebook API for posting an update with privacy settings. It seems like you cannot set privacy by friendlist, but can set it by individual user IDs instead. Does anyone know if setting privacy by a friendlist is possible, and if so, how?
Resources:
Upvotes: 1
Views: 1193
Reputation: 52063
Yes this is possible. When calling the post graph api, you send over the privacy settings that are linked in your first link. You send over the field "privacy", which contains an array or dictionary of values. The only required one is "value", with the options of EVERYONE, ALL_FRIENDS, NETWORKS_FRIENDS, FRIENDS_OF_FRIENDS, or CUSTOM. The rest of the rules about when you need to fill in the other array values (friends, networks, allow and deny) are on that site.
If you want to specify a friend list for you the post, you would first need to query the list of friends the user has, which would require the read_friendlist extended permissions.
If you've tried this and it doesn't work, post your code to indicate what you have tried.
Upvotes: 1