Pinterest redirect_uri 查询参数

Pinterest redirect_uri query parameter

在我的 Pinterest 应用程序中,我已将重定向 URI 设置为 https://my.site.com/pinterest/callback。在身份验证后重定向回我的站点时,我附加了一个 sessionid,因此查询变为 https://my.site.com/pinterest/callback?sessionid=<string>。这似乎不起作用,因为我得到

The provided redirect_uri https://my.site.com/pinterest/callback?sessionId=YA6udv2FrdjjV8juij3U5oIBBP6RoEQWWUFNzSHKaHGGf3jRq10uJ2A0-R-eYB8LLwiBTbESEdGzMY0fhYI8d7gOe3kOoPuPS6c-mowaaJBDv0J8D2I does not match any of the registered redirect URIs."

在 Instagram 等其他 API 中,这是可能的。有人能帮忙吗?非常感谢!

我已经坚持了两天了。基本上,Pinterest 不像其他网站那样支持自定义参数,对于 Pinterest 你需要提供 EXACT 回调 url 并且它必须使用 https 不是 http,如果你需要传递自定义参数,它们应该在状态参数中。

来自 Pinterest 文档

state: A value you define. This can be used to make sure that the redirect back to your site or app wasn’t spoofed.

参见 身份验证 部分 https://developers.pinterest.com/docs/api/overview/