Abhishek Sharma
Abhishek Sharma

Reputation: 3280

Access Post details posted by application using Graph API

Currently my Facebook application sets default privacy as Friends while posting on Facebook. Is it possible to change default privacy as public OR can I access details of that fb post using graph api even if the privacy is set to friends?

In case of post having privacy set to friends I get the following error:


`{
  "error": {
    "message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
    "type": "GraphMethodException",
    "code": 100,
    "fbtrace_id": "HItrveu8gg0"
  }
}`

Upvotes: 0

Views: 45

Answers (1)

andyrandy
andyrandy

Reputation: 73984

You can set the privacy while posting, there is a parameter for it: https://developers.facebook.com/docs/graph-api/reference/user/feed#publish

But:

This field cannot be used to set a more open privacy setting than the one granted.

If you want to access posts later, authorize the user with the user_posts permission.

Upvotes: 1

Related Questions