Facebook Workplace Graph API:在Groupchat中添加参与者

时间:2018-07-19 01:54:28

标签: facebook facebook-graph-api

Workplace Bot Guide所示,下面的POST请求应该能够将参与者添加到群聊中。

POST t_<thread_id>/participants
{
  "to": [<user_ids>]
}

我尝试过

{
    "to":["example-of-user-id"]
}

{
    "to": {"ids":["example-of-user-id"]}
}

{
    "to":{"id":"example-of-user-id"}
}

{
    "to":[{"id":"example-of-user-id"}]
}

他们都不在工作,抛出错误

{
    "error": {
        "message": "(#2) Service temporarily unavailable",
        "type": "OAuthException",
        "is_transient": true,
        "code": 2,
        "fbtrace_id": "example_of_fbtraceid"
    }
}

这条路线是否适合任何人?

0 个答案:

没有答案