[英]Facebook API How to get a list of unpublished posts
I'm having a little bit of trouble getting a lists of posts of a page on facebook... 我在获取Facebook上某个页面的帖子列表时遇到了一些麻烦...
I'm using the url to get the posts of the page 我正在使用url获取页面的帖子
string.Format("{0}/posts, pageid)
But I cant take the unpublished posts.. It only gets the published posts... Is there any permission I have to use... or some other parameter? 但是我不能接受未发布的帖子。。它只能获取已发布的帖子...我必须使用任何许可...还是其他一些参数? I also tried like this
我也这样尝试过
string.Format("{0}/posts?is_published=false", pageid)
... Didn't work... 没工作
Can someone help me? 有人能帮我吗?
Try the following 尝试以下
<pageId>/promotable_posts?is_published=false&fields=<the fields that you want>
at Facebook Graph API Explorer 在Facebook Graph API Explorer中
Promotable posts include unpublished posts as well as regular posts. 可晋升的职位包括未发布的职位以及常规职位。 To get only unpublished posts, set is_published to false.
要仅获取未发布的帖子,请将is_published设置为false。
Fields are just comma delimited field names ex: fields=message,created_time,comments
字段只是逗号分隔的字段名称,例如:
fields=message,created_time,comments
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.