Facebook publish_actions - default accessibility for friends of friends

I use the publish_actions scope to publish to the username, for example:

https://www.facebook.com/dialog/oauth?client_id=%s&redirect_uri=%s&state=%s&scope=publish_actions 

A dialog box is displayed here in which the visibility level is set to Friends by default. For example, see the small drop-down menu at the bottom left of the screenshot here

Is it possible for this visibility level to be set to Friends of Friends by default?

+6
source share
1 answer

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" } 
+2
source

Source: https://habr.com/ru/post/945747/


All Articles