You can use SELF
php
facebook api
example:
$privacy = array(
'value' => 'SELF' //private
);
$publish = $facebook->post('/me/videos',
array('access_token' => $page_token,
'title'=> $title,
'privacy'=> $privacy,
'source' => $facebook->videoToUpload($fn),
'description' => $desc
));
object containing the value
field and optional friends
, networks
,
allow
and deny
fields.
The value
field may specify one of the following strings: EVERYONE
,
ALL_FRIENDS
, NETWORKS_FRIENDS
, FRIENDS_OF_FRIENDS
, CUSTOM
.
The friends
field must be specified if value
is set to CUSTOM
and
contain one of the following strings: EVERYONE
, NETWORKS_FRIENDS
(when
the object can be seen by networks and friends), FRIENDS_OF_FRIENDS
,
ALL_FRIENDS
, SOME_FRIENDS
, SELF
, or NO_FRIENDS
(when the object can be
seen by a network only).
The networks
field may contain a comma-separated list of network IDs
that can see the object, or 1 for all of a user's network.
The allow
field must be specified when the friends
value is set to
SOME_FRIENDS
and must specify a comma-separated list of user IDs and
friend list IDs that 'can' see the post.
The deny
field may be specified if the friends
field is set to
SOME_FRIENDS
and must specify a comma-separated list of user IDs and
friend list IDs that 'cannot' see the post.
Search for privacy on the following link to see all options:
https://developers.facebook.com/docs/graph-api/reference/v2.6/post