如何使用 Graph API Explorer 在 Facebook 群组上发布页面?

问题描述 投票:0回答:1

我是网站、Facebook 群组、主页和 Facebook API 的管理员。我想每天使用我的主页名称作为作者并使用 Graph API Explorer 在我的 Facebook 群组上创建一个帖子。还可能吗?

首先,我直接使用 Graph API Explorer,但无法创建帖子。 https://developers.facebook.com/tools/explorer/

目前,我已经使用这些数据和参数测试了 Graph Explorer:

要求:

post/v15.0/{my_group_id}/feed?message=test

设置:

  • 应用程序元:我的应用程序
  • 用户或页面:我的页面
  • 权限:pages_show_list、publish_to_groups、pages_read_engagement、pages_manage_posts、public_profile
{
  "error": {
    "message": "Permissions error",
    "type": "OAuthException",
    "code": 200,
    "error_subcode": 1376025,
    "is_transient": false,
    "error_user_title" => "No Permission to Post"
    "error_user_msg" => "You do not have permission to post in this group."
    "fbtrace_id": "xxx"
  }
}

我不确定我是否做错了什么或者这根本不可能?

facebook facebook-graph-api facebook-opengraph facebook-php-sdk facebook-group
1个回答
0
投票

您所需要做的就是在 API 调用期间使用页面访问令牌而不是用户令牌。 如果您使用的是 Graph API Explorer,请确保在提出请求之前选择该页面。

© www.soinside.com 2019 - 2024. All rights reserved.