无法为Web生成Tiktok访问令牌

发布于 2025-01-28 01:41:56 字数 805 浏览 5 评论 0 原文

这是我的请求port url:

https://open-api.tiktok.com/oauth/access_token/?client_key = fgjvjhg&client_client_secret_secret = ghhjgjhgjkhjkhjkhjkhjk&code = web&cp; code = web& amp_type = authorization =

authorization_code_code_code_code_code_code

“数据”: { “码头”:“”, “ desc_url”:“”, “描述”:“授权代码过期”, “ error_code”:10007 },, “消息”:“错误” }

这是我关注的文档页面: https://developers.tevelopers.tevelicers.tiktok.com/doc/login-login--com/login-com-doc/login-- Kit-Manage-user-access-tokens

请帮助我,谢谢。

Here is my Request Post URL:

https://open-api.tiktok.com/oauth/access_token/?client_key=fgjvjhg&client_secret=ghhjgjhgjkhjk&code=Web&grant_type=authorization_code

Here is the response which I got:

{
"data": {
"captcha": "",
"desc_url": "",
"description": "Authorization code expired",
"error_code": 10007
},
"message": "error"
}

Here is the documentation page which I am following:
https://developers.tiktok.com/doc/login-kit-manage-user-access-tokens

Please help me with that, thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

白云悠悠 2025-02-04 01:41:56

您在那里缺少2个值:

  1. 代码(来自Web/ios/Android授权回调的授权代码)
  2. Grant_Type(应始终将其设置为授权

示例请求:

https://open-api.tiktok.com/oauth/access_token/?client_key={{key}}&client_secret={{secret}}&code={{client_unqiue_id}}&grant_type=authorization_code

You are missing 2 values there:

  1. Code (Authorization code from Web/iOS/Android authorization callback)
  2. grant_type (should always be set as authorization_code)

Example request:

https://open-api.tiktok.com/oauth/access_token/?client_key={{key}}&client_secret={{secret}}&code={{client_unqiue_id}}&grant_type=authorization_code
走走停停 2025-02-04 01:41:56

检查您的代码以确保您没有提出重复的请求。第二个请求将使第一个请求无效,您将获得授权代码过期

Check your code to make sure you're not making duplicate requests. A second request will invalidate the first one and you'll get Authorization code expired.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文