从java应用程序获取facebook访问令牌

发布于 2025-01-05 20:47:11 字数 201 浏览 3 评论 0原文

我正在开发一个 java 桌面应用程序,我可以在其中访问 Facebook 信息。通过将访问令牌复制并粘贴到我的代码中以进行测试,效果非常好。但我的问题是在 java 应用程序中按下登录按钮时获取访问令牌,用户有可能重定向到 Facebook 登录页面或应用程序授权页面以授予应用程序访问权限。我也尝试过使用 Javascript,但它无法将访问令牌返回到 java 桌面应用程序。 谢谢

I am working on a java desktop app in which I can access Facebook Info. By copying and pasting the Access Token in my code for testing purpose, this works great. But My problem is getting that Access Token when the log-in button is pressed in the java app, with the chance of the user redirected to the Facebook log-in page or the App Authorization page to grant the app Access. I have tried using Javascript too but it can't return the access token to the java desktop app.
thank you

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文