为Facebook Workplace生成具有权限(范围)的应用访问令牌

时间:2018-06-01 10:11:14

标签: facebook facebook-graph-api access-token facebook-access-token facebook-workplace

我尝试使用以下权限为Facebook Workplace生成应用访问令牌:

  

manage_pages,pages_show_list,publish_pages,read_page_mailboxes,business_management,pages_messaging,pages_messaging_subscriptions,public_profile

以下请求成功检索到令牌

enter image description here

但是当我调试令牌时

GET /debug_token?input_token=<token generated from above request> HTTP/1.1
Host: graph.facebook.com
Authorization: Bearer ****

返回以下输出:

{
    "data": {
        "app_id": "*********",
        "type": "APP",
        "application": "***",
        "is_valid": true,
        "scopes": []
    }
}

所以我的问题是如何生成具有所需权限(范围)的应用访问令牌?

我指的是:

0 个答案:

没有答案