You are here

public function FBAutopost::getPrivacy in Facebook Autopost 7

Gets the privacy value.

@todo Better handling of the privacy

Return value

string The privacy array formatted as array('value' => 'ALL_FRIENDS') …

See also

https://developers.facebook.com/docs/reference/api/privacy-parameter/

1 call to FBAutopost::getPrivacy()
FBAutopost::publishParameterPrepare in class/FBAutopost.php
Prepares the parameters to publish to Facebook, this means settings any field or destination dependent configuration.

File

class/FBAutopost.php, line 409

Class

FBAutopost
API class to handle common actions when autoposting This class uses FBAutopostException for error handling. Severity is passed resusing watchdog severity (See: http://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/watch...)

Code

public function getPrivacy() {
  return isset($this->privacy) ? array(
    'value' => $this->privacy,
  ) : NULL;
}