我试图从user_id获取页面范围ID(PSID)
据我所知,一个用户有两种ID:一种用于Graph API平台(GID),另一种用于Messenger平台(MID)。
(PSID = MID,user_id = GID)
我已经找到了从GID更改为MID的方法:
GET /{GID}/ids_for_pages?access_token=[page_access_token]&appsecret_proof=[appsecret_proof]
enter code here
json我收到了:
{ "data": [
{
"id": "MID here",
"page": {
"name": "Trang web b\u00e1n h\u00e0ng",
"id": "1863210517250420"
}
} ], "paging": {
"cursors": {
"before": "MTg2MzIxMDUxNzI1MDQyMAZDZD",
"after": "MTg2MzIxMDUxNzI1MDQyMAZDZD"
} }}
现在我想从MID更改为GID。
我试试这个
GET /{MID}/ids_for_pages?access_token=[page_access_token]&appsecret_proof=[appsecret_proof]
但我收到错误
{ "error": {
"message": "(#230) Requires pages_messaging permission to manage the object",
"type": "OAuthException",
"code": 230,
"fbtrace_id": "D+x01MWia1s" }}
我已经在here阅读了Facebook的文档,但我找不到从MID更改为GID的方法。
请帮帮我。感谢您阅读我的问题。