从java应用程序获取facebook访问令牌
我正在开发一个 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论