How to star a post on a facebook fanpage using graph api?

☆樱花仙子☆ 提交于 2019-12-20 04:43:08

问题


I'm posting on my fanpage but i want to do highlight posts. Any suggestions?

I have to star them one by one on the fanpage. Is there any way to do this? I also read the documentation but there is no examples.

http://developers.facebook.com/docs/reference/api/page/#posts

Sample of code:

  $args = array(
      'access_token'  => $page_info['access_token'],
      'message'       => 'MY MESSAGE'
  );

  $post_id = $facebook->api("/MY PAGE ID/feed","post",$args);

Im using PHP SDK 3.1.x.


回答1:


Use:

POST /<post_id>/ with param timeline_visibility = starred

timeline_visibility must be one of the following values: hidden, normal, starred.

Also see https://stackoverflow.com/a/19861323/1784062.



来源:https://stackoverflow.com/questions/10686409/how-to-star-a-post-on-a-facebook-fanpage-using-graph-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!