Reputation: 146
I am creating a moderating application in which i need to fetch all the posts on a page and then set the posts to be hidden if required. In Facebook, there is an option to set a post as hidden. How do I do this using the Graph API or FQL?
Upvotes: 3
Views: 4897
Reputation: 334
Since a few weeks, you can make a POST request to the post object with the parameter "is_hidden" :
curl –F 'is_hidden=true" \
"https://graph.facebook.com/<POST_ID>?access_token=_"
Check the documentation at "Hiding a Page Post" : https://developers.facebook.com/docs/reference/api/page/
Upvotes: 4
Reputation: 3895
You'll want to check out the docs, regarding the privacy field.
Upvotes: 0