如何使用图表API在Facebook粉丝专页上发帖? [英] How to star a post on a facebook fanpage using graph api?

查看:160
本文介绍了如何使用图表API在Facebook粉丝专页上发帖?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发布在我的粉丝页面,但我想做突出显示的帖子。任何建议?



我必须在粉丝专页上一个接一个地给他们着色。有没有办法做到这一点?我也阅读了文档,但没有例子。



http:/


$ b / $ b

  $ args = array(
'access_token'=> $ page_info ['access_token'],
'message'=>'我的信息'
);

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

我使用PHP SDK 3.1.x。

解决方案

使用:

  POST /< post_id> / with param timeline_visibility = starred 

timeline_visibility 必须是以下值之一:隐藏正常已加星标



另请参阅 https://stackoverflow.com/a/19861323/1784062


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.

解决方案

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.

这篇关于如何使用图表API在Facebook粉丝专页上发帖?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆