Cannot set visibility programmatically during login authorization dialog.
Theoretically, you can set the privacy level when publishing a publication for a user (if you have permission to publish_actions ):
This means that DO NOT overwrite the default setting chosen by the user during login. So, if I select "Friends", the application will not be able to send friends to friends.
Example:
POST /v2.2/me/feed
Raw body:
message=Test+message&privacy={"value":"FRIENDS_OF_FRIENDS"}
leads to
{ "id": "{post_id}" }
Check:
/{post_id}?fields=id,message,privacy
leads to
{ "id": "{post_id}", "message": "Test message", "privacy": { "description": "Your friends", "value": "ALL_FRIENDS", "friends": "", "networks": "", "allow": "", "deny": "" }, "created_time": "2015-01-26T14:49:39+0000" }
source share