gpt4 book ai didi

session - Facebook 图形 API : Cannot extend access token, "invalid platform session"(错误 452)

转载 作者:行者123 更新时间:2023-12-05 07:34:57 30 4
gpt4 key购买 nike

我正在尝试扩展一个新的短期 (1h) 用户访问 token ,并收到以下错误响应(使用 https://graph.facebook.com/oauth/access_token?grant_type=fb_exchange_token&client_id=XXX&client_secret=YYY&fb_exchange_token=ZZZ ):

{ 
"error": {
"message": "Session key invalid. This could be because the session key has an incorrect format, or because the user has revoked this session",
"type": "OAuthException",
"code": 452,
"error_subcode": 1349045,
"is_transient": false,
"error_user_title": "An invalid Platform session was found.",
"error_user_msg": "An invalid Platform session was found.",
"fbtrace_id": "GhzaJGRwVK5"
}
}

我尝试过更改密码/注销和登录,隐身模式,但我一直得到相同的结果。我过去有一个有效的永不过期 token ,但我以某种方式注销了它,或者至少在我调试它时它说:

Error validating access token: The user has not authorized application XXXXXXXX

我想我可能需要 a) 终止所有以前的 session 或 b) 使用我永不过期的 token 重新授权应用程序...有什么建议吗?

非常感谢任何帮助!

最佳答案

我在我的用户帐户设置 (https://www.facebook.com/settings?tab=applications) 中关闭了 Graph API Explorer 和我的应用程序的数据访问。之后,我更新了访问权限并使用访问 token 工具生成了一个新的访问 token 。

关于session - Facebook 图形 API : Cannot extend access token, "invalid platform session"(错误 452),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49878778/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com