通过 Facebook SDK 在粉丝专页上发布的帖子只有我自己可以看到吗?

Posts via facebook SDK on fanpage are only visible to myself?

我遇到了一个小问题。
我想通过 php.
在我的 Facebook 粉丝专页上自动 post 我创建了一个 Facebook 应用程序,获得了密钥和应用程序 ID,并创建了一个 60 天的访问令牌。当我通过 php 在我的粉丝专页上 post 时,我可以看到照片和文字,上面写着 "public"。但只有我能看到post,没有其他人。

我真的不知道为什么。该应用程序不是 public(因为我需要在隐私政策中添加 url。还有 user_postspublish_pagesuser_photosmanage_pages 没有正确激活,我猜。只有几行代码和我的访问令牌之类的东西。没有任何人可以登录或类似的东西。

抱歉,如果解释不当。

编辑:// 这是我用于 post:

的所有代码
require_once('src/Facebook/autoload.php');

$fb = new Facebook\Facebook([
    'app_id' => 'App-ID',
    'app_secret' => 'App-Secret',
    'default_graph_version' => 'v2.2',
]);

$data = [
    'message' => $text,
    'source' => $fb->fileToUpload('photo.png'),
];

try {
    $response = $fb->post('/me/photos', $data, 'My 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 'Photo ID: ' . $graphNode['id'];

The app isn't public

那是你的问题。

https://developers.facebook.com/docs/apps/managing-development-cycle

When your app is in development mode only the people that you have configured via the Roles setting (more information on this below) will have access to use the app. Any person that has not been explicitly whitelisted in a Role will not be able to see the app, nor will they see any Feed stories, Requests or other social distribution features.

在某个地方放一个简短的隐私政策 - Github、Pastebin 等等 - 然后打开应用程序。