0

I am trying to read the privacy settings of a Facebook photo posted by a user using my app.

On the documentation for the privacy node, it says photos return a field with the privacy information, but on the documentation for the photo node, privacy isn't on the list of fields so when I try adding it to my list of fields, I get the following:

{
  "error": {
    "message": "(#100) Tried accessing nonexisting field (privacy) on node type (Photo)",
    "type": "OAuthException",
    "code": 100
  }
}

Any ideas? Here's my code:

$fbSession = new FacebookSession(ACCESS_TOKEN);

// Request photo info
$photoRequest = (new FacebookRequest(
    $fbSession,
    'GET',
    '/' . ID_PHOTO_FACEBOOK,
    ['fields' => 'from.name(1),link,source,likes.summary(1),comments.summary(1)']
))->execute();
$photoGraphObject = $photoRequest->getGraphObject();

Thanks!

Brad Schoening
  • 1,281
  • 6
  • 22
Marcos Duarte
  • 3,472
  • 4
  • 19
  • 22
  • 1
    The documentation say that you can set the privacy field when you update or create. It doesn't say there is a privacy field when you do a read – WizKid Aug 07 '15 at 18:21
  • Yes I know, but is there a way to retrieve this information? Perhaps using another node? – Marcos Duarte Aug 11 '15 at 13:37

0 Answers0