viktor
viktor

Reputation: 69

making post hidden with graph api

i have post created calling graph api

https://graph.facebook.com/me/feed/?access_token=<token>

it returns somthing like: {"id":"<UID>_<POST_ID>"}

now i want to hide this post by api call

curl -F "is_hidden=true" "https://graph.facebook.com/<POST_ID>?access_token=<token>

but i am geting this response:

{"error":{"message":"(#100) The parameter reorder_pids is required", "type": "OAuthException", "code":100}}

is here somebody who using api for this? (hiding post) if yes, is it working for you? ;)

Upvotes: 2

Views: 1504

Answers (3)

Alireza Balouch
Alireza Balouch

Reputation: 467

I found a way to hide the post from facebook page.

curl -F "timeline_visibility=hidden" "https://graph.facebook.com/<POST_ID>/?access_token=<page_token>

...and it return true.

Upvotes: 2

rcastera
rcastera

Reputation: 319

It only works when the post is published by a non-admin user.

Upvotes: 1

snkashis
snkashis

Reputation: 2991

Is it actually possible to update a post's privacy after the fact like that? I'm not sure.

You can set the privacy field on the initial create though.

 privacy={'value':'SELF'}

See

http://developers.facebook.com/docs/reference/api/post/ and http://developers.facebook.com/docs/reference/privacy-parameter/

Upvotes: 0

Related Questions