如何post到Facebook粉丝专页时间线?

How to post to Facebook fan page timeline?

我按照 documentation 中的步骤操作:

$fb = new Facebook\Facebook([
  'app_id' => '{app-id}',
  'app_secret' => '{app-secret}',
  'default_graph_version' => 'v2.2',
  ]);

$linkData = [
  'link' => 'http://www.example.com',
  'message' => 'User provided message',
  ];

try {
  // Returns a `Facebook\FacebookResponse` object
  $response = $fb->post('/me/feed', $linkData, '{access-token}');
} catch(Facebook\Exceptions\FacebookResponseException $e) {
  echo 'Graph returned an error: ' . $e->getMessage();
  exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
  echo 'Facebook SDK returned an error: ' . $e->getMessage();
  exit;
}

$graphNode = $response->getGraphNode();

echo 'Posted with id: ' . $graphNode['id'];

我收到 posted 的成功消息。

问题是只有我(页面管理员用户)可以看到post。

其他人无法看到 post。

我添加了以下权限:

manage_pages,publish_actions,publish_pages

我不确定我错过了什么?

确保您的应用程序在应用程序设置中可用:

https://developers.facebook.com/apps/[app-id]/review-status/

使用以下文本旁边的开关:

Do you want to make this app and all its live features available to the general public?